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

Method constructor

src/cache/localcache.ts:12–17  ·  view source on GitHub ↗
(
    private readonly configService: ConfigService,
    private readonly module: string,
  )

Source from the content-addressed store, hash-verified

10 static localCache = new NodeCache();
11
12 constructor(
13 private readonly configService: ConfigService,
14 private readonly module: string,
15 ) {
16 this.conf = this.configService.get<CacheConf>('CACHE')?.LOCAL;
17 }
18
19 async get(key: string): Promise<any> {
20 return LocalCache.localCache.get(this.buildKey(key));

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected