Struct freqache::LFUCache [−][src]
pub struct LFUCache<K> { /* fields omitted */ }
Expand description
A weighted, thread-safe least-frequently-used cache
Implementations
Return true
if the cache contains the given key.
Add a new key to the cache and return true
is it was already present, otherwise false
.
If already present, the key’s priority is increased by one.
Remove an entry from the cache and return true
if it was present or false
if not.