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