MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / buildAnalyticsCacheKey

Function buildAnalyticsCacheKey

packages/http-routes/src/analytics-cache.ts:33–35  ·  view source on GitHub ↗
(namespace: string, params: Record<string, unknown>)

Source from the content-addressed store, hash-verified

31 * requests map to the same key.
32 */
33export function buildAnalyticsCacheKey(namespace: string, params: Record<string, unknown>): string {
34 return `${namespace}:${canonical(params)}`
35}
36
37/**
38 * Cache-first wrapper for an analytics computation bound to a session.

Callers 2

withAnalyticsCacheFunction · 0.85

Calls 1

canonicalFunction · 0.85

Tested by

no test coverage detected