AdapterCtx
●tagtree · /core·interface
Runtime context passed to every adapter operation, carrying the schema definition and a logger so adapters can emit structured diagnostics tied to the call site.
Properties
PROPTYPEDESCRIPTION
schema
S
The resolved cache schema shape; adapters may inspect ``schema.namespace`` for scoped logging.
requestScope?
unknown
Opaque per-request value that adapter implementations may use to correlate operations across a single request lifecycle.
Example
const ctx: AdapterCtx = {
schema: myCache.schema,
logger: consoleLogger,
};
await myAdapter.read('some-key', ctx);Related
ContractTestOptions runAdapterContract CacheAdapter CacheInstance CacheKey CacheSchema CacheSchemaShape EntityDecl
MetadataOpen in GitHub ↗