Cache [constructor] | Constructors |
clear | Remove all items from this cache. Do not invoke the post-eviction callback. |
equalFunction | Return (a copy of) the key-equality functor used by this cache that returns true if two KEY objects have the same value, and false otherwise. |
erase | Remove the item having the specified key from this cache. |
eraseBulk | eraseBulk overloads |
evictionPolicy | Return the eviction policy used by this cache. |
hashFunction | Return (a copy of) the unary hash functor used by this cache to generate a hash value (of type std::size_t) for a KEY object. |
highWatermark | Return the high watermark of this cache, which is the size at which eviction of existing items begins. |
insert | insert overloads |
insertBulk | insertBulk overloads |
lowWatermark | Return the low watermark of this cache, which is the size at which eviction of existing items ends. |
popFront | Remove the item at the front of the eviction queue. Invoke the post-eviction callback for the removed item. Return 0 on success, and 1 if this cache is empty. |
setPostEvictionCallback | Set the post-eviction callback to the specified postEvictionCallback. |
size | Return the current size of this cache. |
tryGetValue | Load the value associated with the specified key into value. |
visit | Call the specified visitor for every item in this cache. |