(key: string, value: any, ttl?: number)
| 21 | } |
| 22 | |
| 23 | async set(key: string, value: any, ttl?: number) { |
| 24 | return LocalCache.localCache.set(this.buildKey(key), value, ttl || this.conf.TTL); |
| 25 | } |
| 26 | |
| 27 | async has(key: string) { |
| 28 | return LocalCache.localCache.has(this.buildKey(key)); |