MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / saveCache

Function saveCache

src/core/embeddings.ts:409–411  ·  view source on GitHub ↗
(rootDir: string, cache: EmbeddingCache)

Source from the content-addressed store, hash-verified

407}
408
409async function saveCache(rootDir: string, cache: EmbeddingCache): Promise<void> {
410 await saveEmbeddingCache(rootDir, cache, CACHE_FILE);
411}
412
413export async function ensureMcpDataDir(rootDir: string): Promise<void> {
414 await mkdir(join(rootDir, CACHE_DIR), { recursive: true });

Callers 1

indexMethod · 0.85

Calls 1

saveEmbeddingCacheFunction · 0.85

Tested by

no test coverage detected