API Docs for: 1.0.0
Show:

gallery-mru-cache Module

Cache which drops items based on "most recently used." Items are dropped when a user-defined criterion is exceeded, e.g., total size or number of items.

The items are stored in a map of {data,mru_item_ref}. The MRU items are stored in a doubly linked list (which stores the map keys) to allow easy re-ordering and dropping of items. Every cache hit moves the associated MRU item to the front of the list.

This module provides the following classes: