Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Cache

Describes a cache (client).

Hierarchy

  • Cache

Implemented by

Index

Methods

Methods

get

  • get<TValue, TDefault>(key: any, defaultValue?: TValue): Promise<TValue | TDefault>
  • Tries to return a value from the cache.

    Type parameters

    • TValue

    • TDefault

    Parameters

    • key: any

      The key.

    • Optional defaultValue: TValue

    Returns Promise<TValue | TDefault>

    The promise with the value or the default value.

set

  • Sets a value.

    Parameters

    Returns Promise<boolean>

    The promise that indicates if operation was successful or not.

Generated using TypeDoc