CacheAdapter

tagtree · /core·interface

Contract that every cache backend must implement to integrate with tagtree's tag-aware invalidation model. Adapters are responsible for storage, tag-index maintenance, and optional features like response decoration or native wrap delegation.

Properties

invalidate
unknown
read
unknown
write
unknown
decorateResponse?
unknown
init?
unknown

Example

const adapter: CacheAdapter = memoryAdapter({ maxEntries: 500 });
const cache = createCacheInstance(mySchema, adapter);

ContractTestOptions runAdapterContract AdapterCtx CacheInstance CacheKey CacheSchema CacheSchemaShape EntityDecl

Sourceadapter.ts:81Edit the JSDoc directly

On this page