Module lru_queue

Module lru_queue 

Source

Structsยง

LruList ๐Ÿ”’
Doubly-linked list that maintains the LRU order
LruNode ๐Ÿ”’
Doubly-linked list node.
LruQueue
Provides a Least Recently Used queue with unbounded capacity.

Type Aliasesยง

Link ๐Ÿ”’
Weak pointer to a LruNode, used to connect nodes in the doubly-linked list. The strong reference is guaranteed to be stored in the data map of the LruQueue.
LruData ๐Ÿ”’
Maps the key to the LruNode in queue and the value.