[][src]Crate elaru

A simple, fast, and memory safe least-recently-used (LRU) cache.

elaru avoids all unsafe operations while still achieves O(1) performance on insert, get, and remove_lru.

See the LRUCache docs for more details.

Structs

Entry

An entry in an LRUCache.

Iter

Mutable iterator over values in an LRUCache, from most-recently-used to least-recently-used.

LRUCache

A LRU cache builds on top of the HashMap from standard library.