import type { IEntityCacheAdapter } from './IEntityCacheAdapter.ts'; import type { IEntityLoadKey, IEntityLoadValue } from './internal/EntityLoadInterfaces.ts'; import type { CacheLoadResult } from './internal/ReadThroughEntityCache.ts'; /** * A IEntityCacheAdapter that composes other IEntityCacheAdapter instances. */ export declare class ComposedEntityCacheAdapter, TIDField extends keyof TFields> implements IEntityCacheAdapter { private readonly cacheAdapters; /** * @param cacheAdapters - list of cache adapters to compose in order of precedence. * Earlier cache adapters are read from first and written to (including invalidations) last. * Typically, caches closer to the application should be ordered before caches closer to the database. * A lower layer cache is closer to the database, while a higher layer cache is closer to the application. */ constructor(cacheAdapters: IEntityCacheAdapter[]); loadManyAsync, TSerializedLoadValue, TLoadValue extends IEntityLoadValue>(key: TLoadKey, values: readonly TLoadValue[]): Promise>>; cacheManyAsync, TSerializedLoadValue, TLoadValue extends IEntityLoadValue>(key: TLoadKey, objectMap: ReadonlyMap>): Promise; cacheDBMissesAsync, TSerializedLoadValue, TLoadValue extends IEntityLoadValue>(key: TLoadKey, values: readonly TLoadValue[]): Promise; invalidateManyAsync, TSerializedLoadValue, TLoadValue extends IEntityLoadValue>(key: TLoadKey, values: readonly TLoadValue[]): Promise; }