Class MemoryMapStorage<TValue>

A KeyValueStorage which uses a JavaScript Map for internal storage.

Type Parameters

  • TValue

Hierarchy

  • MemoryMapStorage

Implements

Constructors

Properties

Methods

Constructors

Properties

data: Map<string, TValue>

Methods

  • Deletes the value stored for the given key.

    Returns

    If there was a value to delete.

    Parameters

    • key: string

      Key to delete.

    Returns Promise<boolean>

  • An iterable of entries in the storage.

    Returns AsyncIterableIterator<[string, TValue]>

  • Returns the value stored for the given identifier. undefined if no value is stored.

    Parameters

    • key: string

    Returns Promise<undefined | TValue>

  • Checks if there is a value stored for the given key.

    Parameters

    • key: string

    Returns Promise<boolean>