MCPcopy
hub / github.com/angular/angular / lru

Method lru

packages/service-worker/worker/src/data.ts:266–276  ·  view source on GitHub ↗

* Lazily initialize/load the LRU chain.

()

Source from the content-addressed store, hash-verified

264 * Lazily initialize/load the LRU chain.
265 */
266 private async lru(): Promise<LruList> {
267 if (this._lru === null) {
268 const table = await this.lruTable;
269 try {
270 this._lru = new LruList(await table.read<LruState>('lru'));
271 } catch {
272 this._lru = new LruList();
273 }
274 }
275 return this._lru;
276 }
277
278 /**
279 * Sync the LRU chain to non-volatile storage.

Callers 1

handleFetchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected