(key: string, field: string, value: any)
| 46 | } |
| 47 | |
| 48 | public async hSet(key: string, field: string, value: any) { |
| 49 | if (!this.cache) { |
| 50 | return; |
| 51 | } |
| 52 | try { |
| 53 | const json = JSON.stringify(value, BufferJSON.replacer); |
| 54 | |
| 55 | await this.cache.hSet(key, field, json); |
| 56 | } catch (error) { |
| 57 | this.logger.error(error); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | async has(key: string) { |
| 62 | if (!this.cache) { |