elaru avoids all unsafe operations while still achieves O(1) performance on insert, get, and remove_lru.
elaru
insert
get
remove_lru
See the documentation for examples and more details.