An in-memory implementation of the Cache. This is the default implementation for compatibility, but applications should switch to a persistent-backed cache driver.

Hierarchy

Constructors

Properties

cacheArrays: Collection<{
    key: string;
    values: string[];
}> = ...

Static collection of in-memory arrays.

cacheItems: Collection<{
    expires?: Date;
    key: string;
    value: string;
}> = ...

Static collection of in-memory cache items.

Methods

  • Fetch a value from the cache by its key.

    Returns

    Promise<any|undefined>

    Parameters

    • key: string

    Returns undefined | string