virtual StatsType Stats() = 0;
virtual std::string GetPrintableOptions() const = 0;
+
+ // Return a new numeric id. May be used by multiple clients who are
+ // sharding the same persistent cache to partition the key space. Typically
+ // the client will allocate a new id at startup and prepend the id to its
+ // cache keys.
+ virtual uint64_t NewId() = 0;
};
// Factor method to create a new persistent cache