MCPcopy
hub / github.com/nodejs/undici / delete

Method delete

lib/cache/sqlite-cache-store.js:346–352  ·  view source on GitHub ↗

* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key

(key)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

#makeValueUrlMethod · 0.95
runMethod · 0.80

Tested by

no test coverage detected