import type { EntityConfiguration } from './EntityConfiguration.ts'; import type { IEntityCacheAdapter } from './IEntityCacheAdapter.ts'; /** * A cache adapter provider vends cache adapters for a particular cache adapter type. * Allows for passing global configuration to cache adapters. */ export interface IEntityCacheAdapterProvider { /** * Vend a cache adapter for an entity configuration. */ getCacheAdapter, TIDField extends keyof TFields>(entityConfiguration: EntityConfiguration): IEntityCacheAdapter; }