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

Method clear

apps/memos-local-plugin/core/embedding/cache.ts:103–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 }
102
103 clear(): void {
104 const hadSize = this.map.size;
105 this.map.clear();
106 this.hits = 0;
107 this.misses = 0;
108 this.evictions = 0;
109 if (hadSize > 0) log.debug("cleared", { hadSize });
110 }
111
112 stats(): EmbedCacheStats {
113 return {

Callers

nothing calls this directly

Calls 2

clearMethod · 0.65
debugMethod · 0.65

Tested by

no test coverage detected