MCPcopy
hub / github.com/promptfoo/promptfoo / getUnscopedCacheKey

Function getUnscopedCacheKey

src/cache.ts:182–185  ·  view source on GitHub ↗
(cacheKey: string, namespace: string)

Source from the content-addressed store, hash-verified

180}
181
182function getUnscopedCacheKey(cacheKey: string, namespace: string) {
183 const namespacePrefix = `${namespace}:`;
184 return cacheKey.startsWith(namespacePrefix) ? cacheKey.slice(namespacePrefix.length) : cacheKey;
185}
186
187async function clearNamespacedCache(cache: Cache, namespace: string) {
188 const namespacePrefix = `${namespace}:`;

Callers 1

getNamespacedCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…