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

Method hGet

src/cache/localcache.ts:54–66  ·  view source on GitHub ↗
(key: string, field: string)

Source from the content-addressed store, hash-verified

52 }
53
54 async hGet(key: string, field: string) {
55 try {
56 const data = LocalCache.localCache.get(this.buildKey(key)) as object;
57
58 if (data && field in data) {
59 return JSON.parse(data[field], BufferJSON.reviver);
60 }
61
62 return null;
63 } catch (error) {
64 this.logger.error(error);
65 }
66 }
67
68 async hSet(key: string, field: string, value: any) {
69 try {

Callers

nothing calls this directly

Calls 3

buildKeyMethod · 0.95
errorMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected