MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / tokenSignature

Function tokenSignature

src/utils/cacheStats.ts:42–44  ·  view source on GitHub ↗
(u: CacheUsage)

Source from the content-addressed store, hash-verified

40 * A change in signature means a new API response arrived — reset the TTL clock.
41 */
42export function tokenSignature(u: CacheUsage): string {
43 return `${u.input_tokens}|${u.cache_creation_input_tokens}|${u.cache_read_input_tokens}`
44}
45
46// ---------------------------------------------------------------------------
47// State file I/O

Callers 3

CachePillFunction · 0.85
onResponseFunction · 0.85
cacheStats.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected