Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • InMemoryCachingService

Implements

Methods

exists

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

Parameters

  • key: string

Returns Promise<boolean>

get

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

Type parameters

  • T

Parameters

  • key: string

Returns Promise<T>

getOrAdd

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

Type parameters

  • T

Parameters

  • key: string
  • value: T
  • cacheTime: Duration = Duration.forever() Default value

Returns Promise<T>

set

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

Type parameters

  • T

Parameters

  • key: string
  • value: T
  • cacheTime: Duration = Duration.forever() Default value

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.