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
PROPTYPEDESCRIPTION
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,
};Related
ContractTestOptions runAdapterContract AdapterCtx CacheAdapter CacheInstance CacheKey CacheSchema CacheSchemaShape
MetadataOpen in GitHub ↗
ParamValues
Converts a ParamMap into the corresponding runtime argument shape where each branded token is replaced by its concrete string or number type; used to type the e
runAdapterContract
Registers a Vitest describe block that verifies an adapter implementation satisfies the CacheAdapter contract; call this inside each adapter package's own test