Creates an in-memory cache. This cache will be forgotten on disposal.

Type Parameters

  • TKey = string

Hierarchy

  • default

Implements

Constructors

Properties

#internalCache: Map<TKey, IAsyncCacheItem>

Methods

  • Type Parameters

    • T

    Parameters

    • key: TKey

    Returns Promise<{
        success: boolean;
        value?: T;
    }>

Generated using TypeDoc