| 124 | * No-op cache; used when `cache.enabled: false` to keep call sites uniform. |
| 125 | */ |
| 126 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected