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

Method hDelete

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

Source from the content-addressed store, hash-verified

83 }
84
85 async hDelete(key: string, field: string) {
86 try {
87 const data = LocalCache.localCache.get(this.buildKey(key)) as object;
88
89 if (data && field in data) {
90 delete data[field];
91 LocalCache.localCache.set(this.buildKey(key), data);
92 return 1;
93 }
94
95 return 0;
96 } catch (error) {
97 this.logger.error(error);
98 }
99 }
100}

Callers

nothing calls this directly

Calls 4

buildKeyMethod · 0.95
errorMethod · 0.80
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected