Hierarchy

  • LocalStore

Methods

  • Get the given value from the store

    Parameters

    • key: string

      The key to the value to retrieve

    Returns Promise<unknown>

  • Whether the given key is present in the store

    Parameters

    • key: string

    Returns Promise<boolean>

  • Remove the given value from the store

    Parameters

    • key: string

      The key to the value to remove

    Returns Promise<void>

  • Returns Promise<void>

  • Set a value into the store (must be JSON stringifiable)

    Parameters

    • key: string
    • value: unknown
    • expiration: Date

      The date upon which the value will be expired (and needs to be remove from the store)

    Returns Promise<void>