(key: string)
| 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))); |
| 24 | } catch (error) { |
| 25 | this.logger.error(error); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | async hGet(key: string, field: string) { |
| 30 | try { |