Crate elaru

Source
Expand description

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. fnv feature is also provided for anyone looking for better performance on small key size.

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.
OSZAR »