MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / clear

Method clear

lib/interfaces/simple-cache.ts:56–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 }
55
56 public async clear() {
57 if (!CURRENT_CACHES.has(this.cacheName)) {
58 return null;
59 }
60
61 try {
62 await caches.delete(this.cacheName);
63 } catch (error) {
64 console.error(error);
65
66 FALLBACK_CACHE.delete(this.cacheName);
67 }
68 }
69}

Callers 2

setMethod · 0.95
fromListFunction · 0.45

Calls 2

hasMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected