MCPcopy
hub / github.com/21st-dev/1code / delete

Method delete

src/main/lib/git/cache/git-cache.ts:97–104  ·  view source on GitHub ↗

* Delete an entry from the cache.

(key: string)

Source from the content-addressed store, hash-verified

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.

Callers 15

getMethod · 0.95
getIfHashMatchesMethod · 0.95
setMethod · 0.95
invalidateByPrefixMethod · 0.95
evictLRUMethod · 0.95
command.tsxFile · 0.45
index.tsFile · 0.45
getMethod · 0.45
setMethod · 0.45
useHotkeyRecorderFunction · 0.45
fetchFileIconFunction · 0.45
invalidateProjectIconFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected