Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICache

Hierarchy

  • ICache

Implemented by

Index

Methods

Methods

Optional allKeys

  • allKeys(): MaybePromise<string[]>
  • Returns MaybePromise<string[]>

get

  • get<T>(key: string): MaybePromise<null | T>
  • Type parameters

    Parameters

    • key: string

    Returns MaybePromise<null | T>

remove

  • remove(key: string): MaybePromise<void>
  • Parameters

    • key: string

    Returns MaybePromise<void>

set

  • set<T>(key: string, entry: T): MaybePromise<void>
  • Type parameters

    Parameters

    • key: string
    • entry: T

    Returns MaybePromise<void>