MCPcopy
hub / github.com/promptfoo/promptfoo / clearCache

Function clearCache

src/cache.ts:878–882  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

876 * ```
877 */
878export async function clearCache() {
879 inflightFetchResponses.clear();
880 namespacedCacheInstances.clear();
881 return getCacheInstance().clear();
882}
883
884/**
885 * Check if caching is currently enabled.

Callers 15

cache.test.tsFile · 0.90
index.test.tsFile · 0.90
databricks.test.tsFile · 0.90
alibaba.test.tsFile · 0.90
atlascloud.test.tsFile · 0.90
openrouter.test.tsFile · 0.90
nvidia.test.tsFile · 0.90
snowflake.test.tsFile · 0.90

Calls 2

getCacheInstanceFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…