Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReadonlyCacheBackend<Key, Value>

Represents an abstraction over the cache storage.
Clients might perform only read operations on storage.

Type parameters

  • Key

    Type of the key.

  • Value

    Type of the value.

Hierarchy

Methods

Methods

get

  • get(key: Key): undefined | CacheEntry<Key, Value>
  • Get the CacheEntry associated with key.

    Parameters

    • key: Key

      Name of the key.

    Returns undefined | CacheEntry<Key, Value>

has

  • has(key: Key): boolean
  • Check if key is present in the cache.

    Parameters

    • key: Key

      Name of the key.

    Returns boolean