Entity
    Preparing search index...

    Vends local memory cache adapters. An instance of this class may be shared across requests to share the local memory cache.

    Implements

    • IEntityCacheAdapterProvider
    Index

    Methods

    • Vend a cache adapter for an entity configuration.

      Type Parameters

      • TFields extends Record<string, any>
      • TIDField extends string | number | symbol

      Parameters

      Returns IEntityCacheAdapter<TFields, TIDField>

    • Returns IEntityCacheAdapterProvider

      a no-op local memory cache adapter provider, or one that doesn't cache locally.

    • Parameters

      • options: { maxSize?: number; ttlSeconds?: number } = {}

      Returns IEntityCacheAdapterProvider

      a local memory cache adapter provider configured with the supplied options.