(entries)
| 59 | } |
| 60 | |
| 61 | async saveLockfile(entries) { |
| 62 | const s = this._tx('lockfile', 'readwrite'); |
| 63 | let last; |
| 64 | for (const [k, v] of entries) last = s.put(v, k); |
| 65 | if (last) await this._req(last); |
| 66 | } |
| 67 | |
| 68 | async clear() { |
| 69 | await this._req(this._tx('cas', 'readwrite').clear()); |