* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
(key)
| 344 | * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key |
| 345 | */ |
| 346 | delete (key) { |
| 347 | if (typeof key !== 'object') { |
| 348 | throw new TypeError(`expected key to be object, got ${typeof key}`) |
| 349 | } |
| 350 | |
| 351 | this.#deleteByUrlQuery.run(this.#makeValueUrl(key)) |
| 352 | } |
| 353 | |
| 354 | #prune () { |
| 355 | if (Number.isFinite(this.#maxCount) && this.size <= this.#maxCount) { |
nothing calls this directly
no test coverage detected