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

Method hSet

src/api/services/cache.service.ts:48–59  ·  view source on GitHub ↗
(key: string, field: string, value: any)

Source from the content-addressed store, hash-verified

46 }
47
48 public async hSet(key: string, field: string, value: any) {
49 if (!this.cache) {
50 return;
51 }
52 try {
53 const json = JSON.stringify(value, BufferJSON.replacer);
54
55 await this.cache.hSet(key, field, json);
56 } catch (error) {
57 this.logger.error(error);
58 }
59 }
60
61 async has(key: string) {
62 if (!this.cache) {

Callers

nothing calls this directly

Calls 2

errorMethod · 0.80
hSetMethod · 0.65

Tested by

no test coverage detected