#hash #hashmap #lru

qlrumap

A HashMap with an LRU feature

1 unstable release

Uses new Rust 2021

0.0.1 May 23, 2022

#30 in #lru

0BSD license

34KB
753 lines

LruMap

The LruMap is a hashbrown-based hash map that keeps track of least recently used map entries.


lib.rs:

The LruMap is a data structure that mimics a small subset of the standard HashMap but with the added feature that it keeps track of the least recently used nodes and optionally supports setting a Time-To-Live duration which can be used to drain nodes that have timed out.

Dependencies

~420–570KB