Options
All
  • Public
  • Public/Protected
  • All
Menu

Holds value even if bot is restarted

  • Values must be serializable!

Hierarchy

  • PersistentCachingService

Implemented by

Methods

exists

  • exists(key: string): Promise<boolean>

Parameters

  • key: string

Returns Promise<boolean>

get

  • get<T>(key: string): Promise<T>

Type parameters

Parameters

  • key: string

Returns Promise<T>

getOrAdd

  • getOrAdd<T>(key: string, value: T, cacheTime?: Duration): Promise<T>

Type parameters

Parameters

  • key: string
  • value: T
  • cacheTime: Duration Optional

Returns Promise<T>

set

  • set<T>(key: string, value: T, cacheTime?: Duration): Promise<void>

Type parameters

Parameters

  • key: string
  • value: T
  • cacheTime: Duration Optional

Returns Promise<void>

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.