@bodil/core
    Preparing search index...

    Class LRUCache<K, V>

    A Least Recently Used cache.

    When the cache needs to drop a value to stay within its bounds, it chooses the value that was accessed the least recently.

    Type Parameters

    • K
    • V

    Implements

    Constructors

    Accessors

    Methods

    • Test if the cache contains a given key.

      This does not count as an access towards cache invalidation.

      Parameters

      • key: K

      Returns boolean