QualifierConfig

tagtree · /core·interface

Declares how a qualifier value (e.g., a locale or currency code) appends a ::key suffix to read tags, isolating cache entries for the same entity but different request contexts without duplicating the invalidation tag hierarchy.

Properties

type
Q
Phantom field carrying the TypeScript type of the qualifier value for inference.
key
unknown

Example

const qualifier: QualifierConfig<string> = {
    type: '' as string,
    key: (locale) => locale,
};

ContractTestOptions runAdapterContract AdapterCtx CacheAdapter CacheInstance CacheKey CacheSchema CacheSchemaShape

Sourceschema.ts:39Edit the JSDoc directly

On this page