Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Cache

Index

Constructors

Properties

getFunction: GetCacheFunction
keyPrefix?: string
setFunction: SetCacheFunction

Methods

  • get(key: string): Promise<undefined | string>
  • set(key: string, value: string, ttlSeconds?: number): Promise<void>
  • Parameters

    • key: string
    • value: string
    • Optional ttlSeconds: number

    Returns Promise<void>