MCPcopy Create free account
hub / github.com/echoVic/blade-code / cacheCompressedContext

Method cacheCompressedContext

src/context/storage/CacheStore.ts:164–167  ·  view source on GitHub ↗

* 缓存上下文压缩结果

(contextHash: string, compressed: any)

Source from the content-addressed store, hash-verified

162 * 缓存上下文压缩结果
163 */
164 cacheCompressedContext(contextHash: string, compressed: any): void {
165 const key = `compressed:${contextHash}`;
166 this.set(key, compressed, 15 * 60 * 1000); // 15分钟TTL
167 }
168
169 /**
170 * 获取缓存的压缩上下文

Callers 1

getFormattedContextMethod · 0.80

Calls 1

setMethod · 0.95

Tested by

no test coverage detected