Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StorageUtil

Hierarchy

  • StorageUtil

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected engine

label

label: string

Methods

clear

  • clear(): Promise<void>
  • Clears the storage.

    Returns Promise<void>

del

  • del(key: string): Promise<void>
  • Removes an item from the storage.

    Parameters

    • key: string

      The key to be deleted from storage

    Returns Promise<void>

get

  • get(key: string): Promise<any>
  • Gets a value from the storage.

    Parameters

    • key: string

      The key to fetch from storage

    Returns Promise<any>

put

  • put(key: string, val: any): Promise<void>
  • Puts a new value in the storage.

    Parameters

    • key: string

      The key to set the value in storage

    • val: any

    Returns Promise<void>

Generated using TypeDoc