MCPcopy
hub / github.com/promptfoo/promptfoo / getScopedCacheKey

Function getScopedCacheKey

src/cache.ts:178–180  ·  view source on GitHub ↗
(cacheKey: string, namespace = getCurrentCacheNamespace())

Source from the content-addressed store, hash-verified

176}
177
178export function getScopedCacheKey(cacheKey: string, namespace = getCurrentCacheNamespace()) {
179 return namespace ? `${namespace}:${cacheKey}` : cacheKey;
180}
181
182function getUnscopedCacheKey(cacheKey: string, namespace: string) {
183 const namespacePrefix = `${namespace}:`;

Callers 4

fetchMistralWithDedupeFunction · 0.90
callModerationApiMethod · 0.90
getNamespacedCacheFunction · 0.85
getFetchCacheKeyFunction · 0.85

Calls 1

getCurrentCacheNamespaceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…