Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LocalStorageBackend

A StorageBackend backed by localstorage.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private storage

Methods

clear

  • clear(): Promise<void>

getItem

  • getItem(name: string): Promise<null | string>

removeItem

  • removeItem(name: string): Promise<void>

setItem

  • setItem(name: string, value: string): Promise<void>
  • The setItem() method of the StorageBackend interface, when passed a key name and value, will add that key to the storage, or update that key's value if it already exists.

    Parameters

    • name: string
    • value: string

    Returns Promise<void>

Generated using TypeDoc