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

Method cacheKey

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

Source from the content-addressed store, hash-verified

114 }
115
116 private cacheKey(url: string): string {
117 return createHash("sha256").update(url).digest("hex").slice(0, 16);
118 }
119
120 private cacheFile(url: string): string {
121 return path.join(this.cacheDir, `${this.cacheKey(url)}.txt`);

Callers 3

cachedMethod · 0.95
cacheFileMethod · 0.95
writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected