Structsยง
- An owning iterator over the entries of an
LruCache
. Thisstruct
is created by theinto_iter
method onLruCache
(provided by theIntoIterator
trait). See its documentation for more. - A least-recently-used (LRU) Cache with lazy eviction. Each entry maintains an associated ordinal value representing when the entry was last accessed. The cache is allowed to grow up to 2 times specified capacity with no evictions, at which point, the excess entries are evicted based on LRU policy resulting in an amortized
O(1)
performance.