joinSegments
●tagtree · /core·functionthrows When
Combines an ordered list of raw segments into a dotted-path cache tag, encoding each segment before joining so no raw value can break the path structure.
Signature
function joinSegments(segments: readonly string | number[]): string;Parameters
| Name | Type | Description |
|---|---|---|
segments | readonly string | number[] |
Returns
A dotted-path string suitable for use as a tagtree cache tag.
Throws
When
any segment encodes to an empty string, which would produce an ambiguous tag.
Example
joinSegments(['commerce', 'shop.example.com', 'product', '123']);
// 'commerce.shop%2Eexample%2Ecom.product.123'Related
ContractTestOptions runAdapterContract AdapterCtx CacheAdapter CacheInstance CacheKey CacheSchema CacheSchemaShape
MetadataOpen in GitHub ↗
InvalidateNamespace
Typed invalidation surface generated from a CacheSchemaShape; exposes a method per declared entity plus tenant and all shortcuts, so callers get autocompletion
KeyFactory
Perentity key builder map derived from a CacheSchemaShape; each method accepts tenant, qualifier, and entityspecific param values and returns a fully resolved C