MCPcopy Create free account
hub / github.com/comuline/api / set

Method set

src/modules/v1/cache.ts:23–33  ·  view source on GitHub ↗
(value: T, ttl?: number)

Source from the content-addressed store, hash-verified

21 }
22
23 async set(value: T, ttl?: number): Promise<void> {
24 await this.kv.set(
25 this.key,
26 JSON.stringify(value),
27 ttl
28 ? {
29 ex: ttl,
30 }
31 : undefined,
32 )
33 }
34}

Callers 5

index.tsFile · 0.80
syncFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected