(key: string, value: any, ttl?: number)
| 39 | } |
| 40 | |
| 41 | async set(key: string, value: any, ttl?: number) { |
| 42 | if (!this.cache) { |
| 43 | return; |
| 44 | } |
| 45 | this.cache.set(key, value, ttl); |
| 46 | } |
| 47 | |
| 48 | public async hSet(key: string, field: string, value: any) { |
| 49 | if (!this.cache) { |