Entity
    Preparing search index...

    Interface for a local memory cache used by GenericLocalMemoryCacher. Most often, this is something like a TTLCache from the @isaacs/ttlcache package or an lru-cache.

    interface ILocalMemoryCache<TFields extends Record<string, any>> {
        delete(key: string): void;
        get(key: string): LocalMemoryCacheValue<TFields> | undefined;
        set(key: string, value: LocalMemoryCacheValue<TFields>): void;
    }

    Type Parameters

    • TFields extends Record<string, any>
    Index

    Methods

    Methods

    • Deletes a value from the cache for specified key.

      Parameters

      • key: string

        key to delete

      Returns void