Class NoCacheStubCacheAdapter<TFields>

A cache adapter is an interface by which objects can be cached, fetched from cache, and removed from cache (invalidated).

Type Parameters

  • TFields

Implements

Constructors

Methods

  • Negatively cache objects that could not be found in the cache or DB.

    Type Parameters

    • N extends string | number | symbol

    Parameters

    • _fieldName: N

      object field being queried

    • _fieldValues: readonly NonNullable<TFields[N]>[]

      fieldValues for objects reported as CacheStatus.NEGATIVE in the cache and not found in the DB.

    Returns Promise<void>