Class LocalStorageKeyValueStore

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Return the key's value, or null if the key does not exist.

    Parameters

    • key: string

      the name of the key you want to retrieve the value of

    Returns undefined | string

    the value of the key or undefined if the key does not exist

  • Add the key to the store, or update that key's value if it already exists.

    Parameters

    • key: string

      the name of the key you want to create/update

    • value: string

      the value you want to give the key you are creating/updating

    Returns void

Generated using TypeDoc