Interface ICache

interface ICache {
    allKeys?(): MaybePromise<string[]>;
    get<T>(key): MaybePromise<undefined | T>;
    remove(key): MaybePromise<void>;
    set<T>(key, entry): MaybePromise<void>;
}

Implemented by

Methods

  • Returns MaybePromise<string[]>

  • Type Parameters

    Parameters

    • key: string

    Returns MaybePromise<undefined | T>

  • Parameters

    • key: string

    Returns MaybePromise<void>

  • Type Parameters

    Parameters

    • key: string
    • entry: T

    Returns MaybePromise<void>