An abstract persistence interface.

Implements

Constructors

Methods

Constructors

Methods

  • Clears all items.

    Returns Promise<void>

  • Resolves to the value for the given key, or null if non-existent.

    Parameters

    • key: string

    Returns Promise<null | string>

  • Removes the given key.

    Parameters

    • key: string

    Returns Promise<void>

  • Saves the given value to disk.

    Parameters

    • key: string
    • value: string

    Returns Promise<void>