CacheSchema
●tagtree · /core·interface
Opaque wrapper returned by defineCache; wraps the resolved CacheSchemaShape to prevent
callers from constructing or mutating the shape directly after validation.
Properties
PROPTYPEDESCRIPTION
schema
Example
const productSchema: CacheSchema = defineCache({ namespace: 'commerce', entities: {} });
const cache = createCacheInstance(productSchema, memoryAdapter());Related
ContractTestOptions runAdapterContract AdapterCtx CacheAdapter CacheInstance CacheKey CacheSchemaShape EntityDecl
MetadataOpen in GitHub ↗
CacheSchemaShape
Fullyresolved schema descriptor held at runtime; carries namespace, optional tenant and qualifier configs, and the entity declarations that drive key building a
compose
Chains multiple CacheAdapter implementations into one, reading from adapters in priority order until a hit is found and fanning writes and invalidations out to