Options
All
  • Public
  • Public/Protected
  • All
Menu

Stores data.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new UserStore(category?: string): UserStore

Properties

Optional Readonly category

category: string

Readonly file

file: string

The file that stores the data.

Static Private Readonly _USER_QUEUE

_USER_QUEUE: default<default, DefaultAddOptions> = ...

Methods

get

  • get<TValue, TDefault>(key: any, defaultValue?: TDefault): TValue | TDefault
  • inheritdoc

    Type parameters

    • TValue = any

    • TDefault = TValue

    Parameters

    • key: any
    • Optional defaultValue: TDefault

    Returns TValue | TDefault

Protected getValue

  • getValue(key: string, valueToReturn: BoxedValue<any>): void

set

  • set(key: any, value: any): Promise<boolean>

Protected setValue

  • setValue(key: string, value: any, succeeded: BoxedValue<boolean>): Promise<void>

Generated using TypeDoc