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

Method warmup

src/context/storage/CacheStore.ts:310–314  ·  view source on GitHub ↗

* 预热缓存(可用于启动时加载常用数据)

(data: { key: string; value: any; ttl?: number }[])

Source from the content-addressed store, hash-verified

308 * 预热缓存(可用于启动时加载常用数据)
309 */
310 warmup(data: { key: string; value: any; ttl?: number }[]): void {
311 data.forEach(({ key, value, ttl }) => {
312 this.set(key, value, ttl);
313 });
314 }
315}

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected