Type Parameters

Hierarchy

Implements

Constructors

Methods

  • Returns whether the store contains the given key.

    Parameters

    • key: string

    Returns boolean

  • Returns whether the store contains the given value.

    Parameters

    • value: V

    Returns any

  • Deletes the stored key and value based on the given key, or ignored if the key doesn't already exist.

    Parameters

    • key: string

      key or null to ignore

    Returns DataStore<V>

  • Returns the stored value for the given key or null if not found.

    Parameters

    • key: string

      key or null for null result

    Returns V

  • Returns the data store ID.

    Returns string

  • Returns whether there are any stored keys.

    Returns boolean

  • Returns the unmodifiable set of all stored keys.

    Order of the keys is not specified.

    Returns Set<string>

  • Stores the given value for the given key (replacing any existing value).

    Parameters

    • key: string

      key

    • value: V

      value object

    Returns DataStore<V>

  • Returns the number of stored keys.

    Returns number

Generated using TypeDoc