Class CacheCollection<K, V>

A collection with a max cap size, which will remove a random element

Type Parameters

  • K

  • V

Hierarchy

  • Collection<K, V>
    • CacheCollection

Constructors

Properties

Methods

Constructors

  • Type Parameters

    • K

    • V

    Parameters

    • Optional options: {
          maxSize?: number;
      }
      • Optional maxSize?: number
    • Optional entries: null | readonly (readonly [K, V])[]

    Returns CacheCollection<K, V>

Properties

maxSize: number

Methods

Generated using TypeDoc