MCPcopy Create free account
hub / github.com/MicrosoftDocs/mcp / writeCacheFile

Method writeCacheFile

cli/src/mcp/cache.ts:125–128  ·  view source on GitHub ↗
(cache: CacheFileShape)

Source from the content-addressed store, hash-verified

123 }
124
125 private async writeCacheFile(cache: CacheFileShape): Promise<void> {
126 await mkdir(dirname(this.cacheFilePath), { recursive: true });
127 await writeFile(this.cacheFilePath, JSON.stringify(cache, null, 2), 'utf8');
128 }
129}
130
131function emptyCacheFile(): CacheFileShape {

Callers 3

readMethod · 0.95
writeMethod · 0.95
clearMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected