* Delete an entry from the cache.
(key: string)
| 95 | * Delete an entry from the cache. |
| 96 | */ |
| 97 | delete(key: string): boolean { |
| 98 | const entry = this.cache.get(key); |
| 99 | if (entry) { |
| 100 | this.currentSizeBytes -= entry.sizeBytes; |
| 101 | return this.cache.delete(key); |
| 102 | } |
| 103 | return false; |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * Invalidate all entries for a given worktree path. |
no test coverage detected