ICacheKeyGenerator
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / ICacheKeyGenerator
Interface: ICacheKeyGenerator
Section titled “Interface: ICacheKeyGenerator”Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:2955
Cache key generator interface
Methods
Section titled “Methods”generate()
Section titled “generate()”generate(
components):CacheKey
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:2959
Generate a cache key from components
Parameters
Section titled “Parameters”components
Section titled “components”Returns
Section titled “Returns”parse()
Section titled “parse()”parse(
key):CacheKeyComponents|null
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:2963
Parse a cache key string back to components
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”CacheKeyComponents | null
hashInputs()
Section titled “hashInputs()”hashInputs(
inputs):string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:2967
Hash input data deterministically
Parameters
Section titled “Parameters”inputs
Section titled “inputs”Record<string, unknown>
Returns
Section titled “Returns”string