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

Method get

src/cache/rediscache.ts:21–27  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

19 this.client = redisClient.getConnection();
20 }
21 async get(key: string): Promise<any> {
22 try {
23 return JSON.parse(await this.client.get(this.buildKey(key)));
24 } catch (error) {
25 this.logger.error(error);
26 }
27 }
28
29 async hGet(key: string, field: string) {
30 try {

Callers

nothing calls this directly

Calls 3

buildKeyMethod · 0.95
errorMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected