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
PROPTYPEDESCRIPTION
invalidate
unknown
read
unknown
write
unknown
decorateResponse?
unknown
init?
unknown
Example
const adapter: CacheAdapter = memoryAdapter({ maxEntries: 500 });
const cache = createCacheInstance(mySchema, adapter);Related
ContractTestOptions runAdapterContract AdapterCtx CacheInstance CacheKey CacheSchema CacheSchemaShape EntityDecl
MetadataOpen in GitHub ↗
Brand
Nominal branding wrapper that makes otherwise structurally equivalent types distinguishable at the type level; used to prevent str and num param tokens from bei
CacheInstance
Fullytyped runtime handle returned by createCacheInstance; binds a cache schema, a storage adapter, and derived key/invalidation helpers into a single callable