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

Method get

src/lib/cache/redis-cache.ts:35–39  ·  view source on GitHub ↗
(type: string, args: string[])

Source from the content-addressed store, hash-verified

33 }
34
35 async get(type: string, args: string[]): Promise<any> {
36 const key = this.generateKey(type, args);
37 const value = await this.client.get(key);
38 return value ? JSON.parse(value) : null;
39 }
40
41 async evict(type: string, args: string[]): Promise<null> {
42 const key = this.generateKey(type, args);

Callers

nothing calls this directly

Calls 2

generateKeyMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected