MCPcopy Create free account
hub / github.com/evolution-foundation/evolution-api / set

Method set

src/cache/localcache.ts:23–25  ·  view source on GitHub ↗
(key: string, value: any, ttl?: number)

Source from the content-addressed store, hash-verified

21 }
22
23 async set(key: string, value: any, ttl?: number) {
24 return LocalCache.localCache.set(this.buildKey(key), value, ttl || this.conf.TTL);
25 }
26
27 async has(key: string) {
28 return LocalCache.localCache.has(this.buildKey(key));

Callers

nothing calls this directly

Calls 2

buildKeyMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected