MCPcopy Create free account
hub / github.com/chhoumann/MetaEdit / set

Method set

src/updatedFileCache.ts:14–22  ·  view source on GitHub ↗
(key: string, content: string)

Source from the content-addressed store, hash-verified

12 }
13
14 public set(key: string, content: string): boolean {
15 if (this.map.has(key) && this.map.get(key).content === content)
16 return false;
17
18 this.map.set(key, {content, updateTime: Date.now()});
19 this.clean();
20
21 return true;
22 }
23
24 public delete(key: string) {
25 this.map.delete(key);

Callers 10

handleChangeMethod · 0.80
enqueueFileWriteMethod · 0.80
onFileModifyMethod · 0.80
dedupeByPathMethod · 0.80
makeHarnessFunction · 0.80
collectTagLeafCountsFunction · 0.80
collectTagFullCountsFunction · 0.80
collectInstancePidsFunction · 0.80

Calls 2

cleanMethod · 0.95
getMethod · 0.80

Tested by 1

makeHarnessFunction · 0.64