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