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

schema
CacheSchemaShape<NS, T, Q, E>

Example

const productSchema: CacheSchema = defineCache({ namespace: 'commerce', entities: {} });
const cache = createCacheInstance(productSchema, memoryAdapter());

ContractTestOptions runAdapterContract AdapterCtx CacheAdapter CacheInstance CacheKey CacheSchemaShape EntityDecl

Sourceschema.ts:96Edit the JSDoc directly

On this page