* @internal
()
| 761 | * @internal |
| 762 | */ |
| 763 | deleteOldest() { |
| 764 | const it = this.#cacheKeyToEntryMap[Symbol.iterator](); |
| 765 | const n = it.next(); |
| 766 | if (!n.done) { |
| 767 | const key = n.value[0]; |
| 768 | const entry = this.#cacheKeyToEntryMap.get(key); |
| 769 | if (entry) { |
| 770 | entry.invalidate(); |
| 771 | } |
| 772 | this.#cacheKeyToEntryMap.delete(key); |
| 773 | } |
| 774 | } |
| 775 | |
| 776 | /** |
| 777 | * Get cache entries for debugging |
no test coverage detected