MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getCacheKey

Function getCacheKey

src/api/providers/fetchers/modelEndpointCache.ts:20–20  ·  view source on GitHub ↗
(router: RouterName, modelId: string)

Source from the content-addressed store, hash-verified

18const memoryCache = new NodeCache({ stdTTL: 5 * 60, checkperiod: 5 * 60 })
19
20const getCacheKey = (router: RouterName, modelId: string) => sanitize(`${router}_${modelId}`)
21
22async function writeModelEndpoints(key: string, data: ModelRecord) {
23 const filename = `${key}_endpoints.json`

Callers 2

getModelEndpointsFunction · 0.70
flushModelProvidersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected