5 releases
0.2.1 | Dec 27, 2020 |
---|---|
0.2.0 | Dec 27, 2020 |
0.1.2 | Dec 27, 2020 |
0.1.1 | Dec 8, 2020 |
0.1.0 | Dec 8, 2020 |
#1565 in Data structures
61 downloads per month
10KB
164 lines
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
. fnv
feature is also provided for anyone looking for better performance on
small key size.
See the documentation for examples and more details.
Acknowledgement: This crate is heavily inspired by uluru, a no_std lru implementation from servo.
lib.rs
:
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.