FanoutInput
●tagtree · /core·interface
Arguments to computeFanout describing which entity to expand and the optional tenant and
param values that narrow the resulting tag set.
Properties
PROPTYPEDESCRIPTION
entity
string
Name of the entity declared in the schema to expand into invalidation tags.
params?
Record<string, string | number>
Per-entity parameter values that produce a leaf tag when all declared params are present.
tenant?
T
Tenant value whose key is prepended to all tags when the schema defines a ``TenantConfig``.
Example
const tags = computeFanout(mySchema.schema, {
entity: 'product',
tenant: shop,
params: { id: '123' },
});Related
ContractTestOptions runAdapterContract AdapterCtx CacheAdapter CacheInstance CacheKey CacheSchema CacheSchemaShape
MetadataOpen in GitHub ↗
EntityDecl
Declares a single entity within a cache schema, specifying the optional params it accepts for leaflevel key building and the parent entity names whose cache ent
ILogger
Minimal structuredlog interface that cache adapters and the instance internals use to report events without pulling in a concrete logging dependency.