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

Method constructor

src/cache/rediscache.ts:14–20  ·  view source on GitHub ↗
(
    private readonly configService: ConfigService,
    private readonly module: string,
  )

Source from the content-addressed store, hash-verified

12 private conf: CacheConfRedis;
13
14 constructor(
15 private readonly configService: ConfigService,
16 private readonly module: string,
17 ) {
18 this.conf = this.configService.get<CacheConf>('CACHE')?.REDIS;
19 this.client = redisClient.getConnection();
20 }
21 async get(key: string): Promise<any> {
22 try {
23 return JSON.parse(await this.client.get(this.buildKey(key)));

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
getConnectionMethod · 0.45

Tested by

no test coverage detected