MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / del

Function del

src/common/cache.js:57–63  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

55 return value;
56 }
57 function del(key) {
58 const data = cache[key];
59 if (data) {
60 delete cache[key];
61 onDispose?.(data.value, key);
62 }
63 }
64 function has(key) {
65 return key in cache;
66 }

Callers 4

cleanFunction · 0.85
popFunction · 0.85
destroyFunction · 0.85
trimFunction · 0.85

Calls 1

onDisposeFunction · 0.85

Tested by

no test coverage detected