35 virtual const char *utGetCacheName()
const = 0;
38 virtual int64 utGetCurrentSize()
const = 0;
43 virtual int64 utReduceCacheSizeBy(
int64 amount) = 0;
64 static void setCacheAddRemoveCB(
void (*callback)(
void *),
void *
data);
67 static int64 utClearSpaceFromCaches(
int64 amount);
virtual bool utHasMinSize() const
virtual bool utUpdateCacheInfo()
virtual int64 utGetMaxSize() const
virtual int64 utGetMinSize() const
Common base class for various caches.
virtual void utSetMinSize(int64)
LeafData & operator=(const LeafData &)=delete
virtual void utSetMaxSize(int64)
virtual bool utHasMaxSize() const
optional - override if the cache has a well defined maximum size