Options
All
  • Public
  • Public/Protected
  • All
Menu

Simple key/value storage interface

Hierarchy

  • Storage

Index

Methods

  • get(key: string): Promise<any>
  • Gets the value at key. Returns a promise that will be resolved with that value (or undefined for missing keys).

    Parameters

    • key: string

    Returns Promise<any>

  • set(key: string, value: any): Promise<any>
  • Sets the value on key and returns a promise that will be resolved with the value that was set.

    Parameters

    • key: string
    • value: any

    Returns Promise<any>

  • unset(key: string): Promise<boolean>
  • Deletes the value at key. Returns a promise that will be resolved with true if the key was deleted or with false if it was not (eg. if did not exist).

    Parameters

    • key: string

    Returns Promise<boolean>

Generated using TypeDoc