(batch)
| 4891 | } |
| 4892 | |
| 4893 | batch(batch) { |
| 4894 | for (var i = 0, len = batch.length; i < len; i++) { |
| 4895 | var operation = batch[i]; |
| 4896 | |
| 4897 | var cache = getCacheFor(this, operation.prefix); |
| 4898 | |
| 4899 | if (operation.type === 'put') { |
| 4900 | cache.set(operation.key, operation.value); |
| 4901 | } else { |
| 4902 | cache.set(operation.key, null); |
| 4903 | } |
| 4904 | } |
| 4905 | this._batch = this._batch.concat(batch); |
| 4906 | } |
| 4907 | |
| 4908 | execute(db, callback) { |
| 4909 | var keys = new Set(); |
no test coverage detected