Module: util/lru-map

A simple and generic LRU map implementation. ONE.core uses it for an internal ID hash cache. This utility module can be used by anyone, there is nothing specific to ONE in it.

Source:

Methods

(static) createLruMap(maxSize) → {LruMapObj}

Parameters:
Name Type Description
maxSize number

The maximum size of the LRU collection

Creates an LRU collection with a given maximum size. Also see LruMapObj

Source:
Returns:

Returns an LRU-Map object

Type: LruMapObj