libboxes
boxes is a set of specialised containers built on top of STL
|
Constructs a new MRU eviction policy. More...
#include <cache.hpp>
Inherits boxes::cache::policy::LRU< K, V >.
Constructs a new MRU eviction policy.
Attempts to insert more than maxSize elements into the cache will result in eviction of the most recently used element.
When iterating over the cache, the most recently used (or inserted) element is stored at the back of the queue.
Both LRU and MRU policies return the least likely to be evicted element as the front
element.