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

Method hGet

src/cache/rediscache.ts:29–41  ·  view source on GitHub ↗
(key: string, field: string)

Source from the content-addressed store, hash-verified

27 }
28
29 async hGet(key: string, field: string) {
30 try {
31 const data = await this.client.hGet(this.buildKey(key), field);
32
33 if (data) {
34 return JSON.parse(data, BufferJSON.reviver);
35 }
36
37 return null;
38 } catch (error) {
39 this.logger.error(error);
40 }
41 }
42
43 async set(key: string, value: any, ttl?: number) {
44 try {

Callers

nothing calls this directly

Calls 3

buildKeyMethod · 0.95
errorMethod · 0.80
hGetMethod · 0.65

Tested by

no test coverage detected