MCPcopy
hub / github.com/angular/angular / dehydrate

Method dehydrate

packages/service-worker/worker/testing/cache.ts:78–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
88export class MockCache {

Callers

nothing calls this directly

Calls 4

keysMethod · 0.65
getMethod · 0.65
forEachMethod · 0.45
dehydrateMethod · 0.45

Tested by

no test coverage detected