Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IterableCacheBackend<Key, Value>

Cache backend iterable protocol.

Type parameters

  • Key

    Type of the key.

  • Value

    Type of the value.

Hierarchy

Properties

Methods

Properties

Readonly size

size: number

Number of stored entries.

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<[Key, CacheEntry<Key, Value>]>
  • Iterate over stored entries.

    Returns IterableIterator<[Key, CacheEntry<Key, Value>]>

keys

  • keys(): IterableIterator<Key>
  • Returns an iterable of stored keys.

    Returns IterableIterator<Key>

values

  • values(): IterableIterator<CacheEntry<Key, Value>>
  • Returns an iterable of stored values.

    Returns IterableIterator<CacheEntry<Key, Value>>