Method
constructor
(
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
Tested by
no test coverage detected