CacheSchemaShape
●tagtree · /core·interface
Fully-resolved schema descriptor held at runtime; carries namespace, optional tenant and qualifier configs, and the entity declarations that drive key building and fanout expansion.
Properties
PROPTYPEDESCRIPTION
entities
E
Map of entity names to their parameter and parent declarations.
namespace
NS
Top-level dotted-path prefix applied to all tags produced by this schema; must not contain ``.``.
qualifier?
Optional qualifier axis config; when present, read tags gain a per-qualifier ``::key`` suffix.
tenant?
Optional tenant axis config; when present, all cache tags are scoped per tenant value.
Example
const schema: CacheSchemaShape = defineCache({ namespace: 'commerce', entities: {} }).schema;Related
ContractTestOptions runAdapterContract AdapterCtx CacheAdapter CacheInstance CacheKey CacheSchema EntityDecl
MetadataOpen in GitHub ↗
CacheKey
Structured cachekey object produced by a KeyFactory; carries a primary tag for logging, the full invalidation fanout, and a qualifiersuffixed read tag for adapt
CacheSchema
Opaque wrapper returned by defineCache; wraps the resolved CacheSchemaShape to prevent callers from constructing or mutating the shape directly after validation