Module lru_map

Module lru_map 

Source
Expand description

Least Recently Used Map

Structsยง

LruMap
The LruMap (i.e. Least Recently Used Map) is a map of keys to values, with a fixed capacity. Adding keys beyond the capacity will remove the least recently accessed key-value tuple and return it.