()
| 76 | } |
| 77 | |
| 78 | dehydrate(): string { |
| 79 | const dehydrated: DehydratedCacheStorage = {}; |
| 80 | Array.from(this.caches.keys()).forEach((name) => { |
| 81 | const cache = this.caches.get(name)!; |
| 82 | dehydrated[name] = cache.dehydrate(); |
| 83 | }); |
| 84 | return JSON.stringify(dehydrated); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | export class MockCache { |