Entity
    Preparing search index...

    Class GenericRedisCacher<TFields, TIDField>

    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>

    • Cache many objects for specified keys.

      Parameters

      • objectMap: ReadonlyMap<string, Readonly<TFields>>

        map from cache key to object to cache for key

      Returns Promise<void>

    • Invalidate specified keys in cache. Subsequent loads for these keys may return a cache miss.

      Parameters

      • keys: readonly string[]

        keys to invalidate

      Returns Promise<void>

    • Load many keys from the cache. Return info in a format that is useful for read-through caching and negative caching.

      Parameters

      • keys: readonly string[]

        cache keys to load

      Returns Promise<ReadonlyMap<string, CacheLoadResult<TFields>>>