(keys)
| 105 | }, |
| 106 | |
| 107 | async remove(keys) { |
| 108 | const toDelete = keys.filter(key => { |
| 109 | let ok = dbKeys.get(key) !== 0; |
| 110 | if (ok) { |
| 111 | cache.del(key); |
| 112 | dbKeys.set(key, 0); |
| 113 | if (undoing) return ok; |
| 114 | if (storage[S_VALUE].toId(key)) { |
| 115 | valuesToFlush[key] = null; |
| 116 | ok = false; |
| 117 | } else { |
| 118 | if (key.startsWith(S_SCRIPT_PRE)) updateScriptMap(key); |
| 119 | updateScriptSizeContributor(key); |
| 120 | } |
| 121 | } |
| 122 | return ok; |
| 123 | }); |
| 124 | if (toDelete.length) await api.remove(toDelete); |
| 125 | if (undoing) return; |
| 126 | if (keys.length) fire(keys); |
| 127 | flushLater(); |
| 128 | }, |
| 129 | }; |
| 130 | |
| 131 | setInterval(() => { |
nothing calls this directly
no test coverage detected