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

Method get

src/modules/v1/cache.ts:18–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 }
17
18 async get(): Promise<T | null> {
19 const data = await this.kv.get<T>(this.key)
20 return data ?? null
21 }
22
23 async set(value: T, ttl?: number): Promise<void> {
24 await this.kv.set(

Callers 4

index.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected