Stores data which persists across a single session. When a user is logged out, this data is removed.

Methods

  • Removes all values from the persistent storage.

    Returns Promise<void>

  • Retrieves an object from the persistent storage. Returns undefined if the object is not present

    Parameters

    • key: string

      The key used to store the value

    Returns Promise<any>

  • Removes a value from the persistent storage. If no value was stored, this function will have no effect.

    Parameters

    • key: string

      The key used to store the value

    Returns Promise<void>

  • Stores a value in the persistent storage.

    Parameters

    • key: string

      The key to store the value under

    • value: any

      The value to store

    Returns Promise<void>