MCPcopy Index your code
hub / github.com/code100x/cms / set

Method set

src/db/Cache.ts:26–33  ·  view source on GitHub ↗
(
    type: string,
    args: string[],
    value: any,
    expirySeconds: number = parseInt(process.env.CACHE_EXPIRE_S || '100', 10),
  )

Source from the content-addressed store, hash-verified

24 }
25
26 async set(
27 type: string,
28 args: string[],
29 value: any,
30 expirySeconds: number = parseInt(process.env.CACHE_EXPIRE_S || '100', 10),
31 ): Promise<void> {
32 return this.delegate.set(type, args, value, expirySeconds);
33 }
34
35 async get(type: string, args: string[]): Promise<any> {
36 return this.delegate.get(type, args);

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected