chickadee » lru-cache » lru-cache-ref

lru-cache-ref cache keyprocedure

Looks up the item matching key and returns the associated value, or #f if no such item exists.

If the item is not the most-recently used, it is marked as MRU (in other words, moved to the head of the list).

If the item is the most-recently used, the LRU list structure is not modified, and consequently the item is returned a bit faster.