MCPcopy Create free account
hub / github.com/VPSDance/ai-proxy-rules / cacheFile

Method cacheFile

scripts/sync/cache.ts:120–122  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

118 }
119
120 private cacheFile(url: string): string {
121 return path.join(this.cacheDir, `${this.cacheKey(url)}.txt`);
122 }
123
124 private indexFile(): string {
125 return path.join(this.cacheDir, "_index.json");

Callers 2

writeMethod · 0.95
readMethod · 0.95

Calls 1

cacheKeyMethod · 0.95

Tested by

no test coverage detected