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

Class NullEmbedCache

apps/memos-local-plugin/core/embedding/cache.ts:126–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 * No-op cache; used when `cache.enabled: false` to keep call sites uniform.
125 */
126export class NullEmbedCache implements EmbedCache {
127 get(_key: string): EmbeddingVector | undefined {
128 return undefined;
129 }
130 set(_key: string, _vec: EmbeddingVector): void {
131 /* no-op */
132 }
133 has(_key: string): boolean {
134 return false;
135 }
136 clear(): void {}
137 stats(): EmbedCacheStats {
138 return { size: 0, maxItems: 0, hits: 0, misses: 0, evictions: 0 };
139 }
140}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected