MCPcopy Index your code
hub / github.com/angular/angular / constructor

Method constructor

packages/service-worker/worker/src/data.ts:249–261  ·  view source on GitHub ↗
(
    private scope: ServiceWorkerGlobalScope,
    private adapter: Adapter,
    private config: DataGroupConfig,
    private db: Database,
    private debugHandler: DebugHandler,
    cacheNamePrefix: string,
  )

Source from the content-addressed store, hash-verified

247 private readonly ageTable: Promise<Table>;
248
249 constructor(
250 private scope: ServiceWorkerGlobalScope,
251 private adapter: Adapter,
252 private config: DataGroupConfig,
253 private db: Database,
254 private debugHandler: DebugHandler,
255 cacheNamePrefix: string,
256 ) {
257 this.patterns = config.patterns.map((pattern) => new RegExp(pattern));
258 this.cache = adapter.caches.open(`${cacheNamePrefix}:${config.name}:cache`);
259 this.lruTable = this.db.open(`${cacheNamePrefix}:${config.name}:lru`, config.cacheQueryOptions);
260 this.ageTable = this.db.open(`${cacheNamePrefix}:${config.name}:age`, config.cacheQueryOptions);
261 }
262
263 /**
264 * Lazily initialize/load the LRU chain.

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
openMethod · 0.65

Tested by

no test coverage detected