Entity

    Class GenericRedisCacher<TFields, TIDField>

    A generic cacher stores and loads key-value pairs. It also supports negative caching - it stores the absence of keys that don't exist in the backing datastore. It is also responsible for cache key creation.

    Type Parameters

    • TFields extends Record<string, any>
    • TIDField extends keyof TFields

    Implements

    Index

    Constructors

    Methods

    • Negatively-cache specified keys. Subsequent loads for these keys (without calling invalidate) may return a negative CacheLoadResult

      Parameters

      • keys: readonly string[]

        keys to cache negatively

      Returns Promise<void>

    MMNEPVFCICPMFPCPTTAAATR