(keys: string[])
| 740 | } |
| 741 | |
| 742 | async hasAllKeys(keys: string[]): Promise<boolean> { |
| 743 | const results = await Promise.all( |
| 744 | keys.map(async (key) => { |
| 745 | const cached = await this.storage.match(key); |
| 746 | return cached !== undefined; |
| 747 | }), |
| 748 | ); |
| 749 | return results.every((result) => result); |
| 750 | } |
| 751 | |
| 752 | async deleteInCache(url: string): Promise<void> { |
| 753 | await this.storage.delete(url); |