(
private readonly configService: ConfigService,
private readonly module: string,
)
| 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))); |
nothing calls this directly
no test coverage detected