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

Method set

src/cache/rediscache.ts:43–49  ·  view source on GitHub ↗
(key: string, value: any, ttl?: number)

Source from the content-addressed store, hash-verified

41 }
42
43 async set(key: string, value: any, ttl?: number) {
44 try {
45 await this.client.setEx(this.buildKey(key), ttl || this.conf?.TTL, JSON.stringify(value));
46 } catch (error) {
47 this.logger.error(error);
48 }
49 }
50
51 async hSet(key: string, field: string, value: any) {
52 try {

Callers

nothing calls this directly

Calls 2

buildKeyMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected