MCPcopy
hub / github.com/callumalpass/tasknotes / setCache

Method setCache

tests/__mocks__/obsidian.ts:357–361  ·  view source on GitHub ↗
(path: string, metadata: any)

Source from the content-addressed store, hash-verified

355 }
356
357 setCache(path: string, metadata: any): void {
358 this.cache.set(path, metadata);
359 const file = new TFile(path);
360 this.emitter.emit('changed', file, '', metadata);
361 }
362
363 deleteCache(path: string): void {
364 this.cache.delete(path);

Calls 2

emitMethod · 0.80
setMethod · 0.65

Tested by 4

setFrontmatterFunction · 0.64
createFileSuggestionNoteFunction · 0.64