Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Storage

Hierarchy

  • Storage

Implements

Index

Properties

Static NAMESPACE

NAMESPACE: string = ...

used with drivers that we need to name spaced, so we don't mix up our values with other party's stored values e.g cookie and localstorage keys

Static instance

instance: Storage

Methods

clearAll

  • clearAll(): Promise<void>
  • Returns Promise<void>

get

  • get(key: string): Promise<undefined | null | string>
  • Parameters

    • key: string

    Returns Promise<undefined | null | string>

getDriver

remove

  • remove(key: string): Promise<void>
  • Parameters

    • key: string

    Returns Promise<void>

set

  • set(key: string, value: string, opts?: ISetOptions): Promise<void>
  • Parameters

    Returns Promise<void>

Static createInstance

Static getInstance

Generated using TypeDoc