Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Store

Stores data.

Hierarchy

  • Store

Implemented by

Index

Methods

Methods

get

  • get<TValue, TDefault>(key: any, defaultValue?: TDefault): TValue | TDefault
  • Tries to return a value from the store.

    Type parameters

    • TValue

    • TDefault

    Parameters

    • key: any

      The key.

    • Optional defaultValue: TDefault

    Returns TValue | TDefault

    The read value or the default value.

set

  • set(key: any, value: any): Promise<boolean>
  • Tries set a value in the store.

    Parameters

    • key: any

      The key.

    • value: any

      The value to set.

    Returns Promise<boolean>

    The promise with the value that indicates if operation was successfull or not.

Generated using TypeDoc