MCPcopy
hub / github.com/promptfoo/promptfoo / getCache

Function getCache

src/cache.ts:63–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 * ```
62 */
63export function getCache() {
64 const namespace = cacheNamespaceStorage.getStore()?.namespace;
65 if (namespace) {
66 return getNamespacedCache(namespace);
67 }
68 return getCacheInstance();
69}
70
71function getCacheInstance() {
72 if (!cacheInstance) {

Callers 15

cache.test.tsFile · 0.90
completion.test.tsFile · 0.90
messages.test.tsFile · 0.90
callApiMethod · 0.90
callApiInternalMethod · 0.90
callApiMethod · 0.90
executeGolangScriptMethod · 0.90
callApiMethod · 0.90
callEmbeddingApiMethod · 0.90

Calls 2

getNamespacedCacheFunction · 0.85
getCacheInstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…