(key: string)
| 17 | } |
| 18 | |
| 19 | async get(key: string): Promise<any> { |
| 20 | return LocalCache.localCache.get(this.buildKey(key)); |
| 21 | } |
| 22 | |
| 23 | async set(key: string, value: any, ttl?: number) { |
| 24 | return LocalCache.localCache.set(this.buildKey(key), value, ttl || this.conf.TTL); |