(key)
| 60 | } |
| 61 | |
| 62 | function deleteEntry(key) { |
| 63 | const entry = _store.get(key); |
| 64 | if (!entry) return false; |
| 65 | _store.delete(key); |
| 66 | _bytes = Math.max(0, _bytes - (Number(entry.bytes) || 0)); |
| 67 | return true; |
| 68 | } |
| 69 | |
| 70 | function digestBase64Data(data = '', mime = '') { |
| 71 | const compact = String(data).replace(/\s/g, ''); |