(key: string)
| 47 | } |
| 48 | |
| 49 | override async getInternal(key: string): Promise<GetResult> { |
| 50 | const cached = this.cache.get(key); |
| 51 | return {hit: !!cached, data: cached}; |
| 52 | } |
| 53 | |
| 54 | override async putInternal(key: string, value: Buffer): Promise<void> { |
| 55 | this.cache.set(key, value); |