- LRU cache based on this excellent article.
- The build status is
- Items in the cache are represented by
- The life-cycle of a node is managed by the
Indexes only contain a
WeakReferenceto the nodes and are there to support finding object through different keys.
- Whenever a new value is added to the cache, all indexes will receive a reference to the newly created
LifeSpanManagerassigns the nodes to
AgeBagreferences the first node in a linked list of nodes.
- The current bag maintains the most recently touched nodes.