Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T: Record<string, any>

  • K: Extract<keyof T, string>

Hierarchy

  • EasyStorage

Index

Constructors

constructor

Methods

clear

  • clear(): Promise<void>

clearSync

  • clearSync(): void

get

  • get<DV>(key: K, defaultValue?: DV): Promise<T[K]>
  • Type parameters

    • DV: T[K] | function

    Parameters

    • key: K
    • Default value defaultValue: DV = null as any

    Returns Promise<T[K]>

getRemember

  • getRemember<DV>(key: K, defaultValue?: DV): Promise<T[K]>
  • Type parameters

    • DV: T[K] | function

    Parameters

    • key: K
    • Default value defaultValue: DV = null as any

    Returns Promise<T[K]>

getRememberSync

  • getRememberSync<DV>(key: K, defaultValue?: DV): T[K]
  • Type parameters

    • DV: T[K] | function

    Parameters

    • key: K
    • Default value defaultValue: DV = null as any

    Returns T[K]

getSync

  • getSync<DV>(key: K, defaultValue?: DV): T[K]
  • Type parameters

    • DV: T[K] | function

    Parameters

    • key: K
    • Default value defaultValue: DV = null as any

    Returns T[K]

remove

  • remove(key: K): Promise<void>

removeSync

  • removeSync(key: K): void

set

  • set(key: K, value: T[K]): Promise<void>

setSync

  • setSync(key: K, value: T[K]): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc