(key: string, field: string)
| 52 | } |
| 53 | |
| 54 | async hGet(key: string, field: string) { |
| 55 | try { |
| 56 | const data = LocalCache.localCache.get(this.buildKey(key)) as object; |
| 57 | |
| 58 | if (data && field in data) { |
| 59 | return JSON.parse(data[field], BufferJSON.reviver); |
| 60 | } |
| 61 | |
| 62 | return null; |
| 63 | } catch (error) { |
| 64 | this.logger.error(error); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | async hSet(key: string, field: string, value: any) { |
| 69 | try { |