MCPcopy
hub / github.com/angular/angular / open

Method open

packages/service-worker/worker/src/db-cache.ts:40–47  ·  view source on GitHub ↗
(name: string, cacheQueryOptions?: CacheQueryOptions)

Source from the content-addressed store, hash-verified

38 }
39
40 async open(name: string, cacheQueryOptions?: CacheQueryOptions): Promise<Table> {
41 if (!this.tables.has(name)) {
42 const cache = await this.adapter.caches.open(`${this.cacheNamePrefix}:${name}`);
43 const table = new CacheTable(name, cache, this.adapter, cacheQueryOptions);
44 this.tables.set(name, table);
45 }
46 return this.tables.get(name)!;
47 }
48}
49
50/**

Callers

nothing calls this directly

Calls 4

hasMethod · 0.65
openMethod · 0.65
setMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected