MCPcopy Create free account
hub / github.com/MemTensor/MemOS / resetCache

Function resetCache

apps/memos-local-plugin/core/embedding/embedder.ts:303–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301 return { hits, misses, requests, roundTrips, failures, lastOkAt, lastError };
302 },
303 resetCache(): void {
304 cache.clear();
305 hits = 0;
306 misses = 0;
307 roundTrips = 0;
308 failures = 0;
309 requests = 0;
310 lastOkAt = null;
311 lastError = null;
312 },
313 async close(): Promise<void> {
314 try {
315 await provider.close?.();

Callers

nothing calls this directly

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected