(transaction, store)
| 4853 | // similar to an idb or websql transaction object |
| 4854 | |
| 4855 | function getCacheFor(transaction, store) { |
| 4856 | var prefix = store.prefix()[0]; |
| 4857 | var cache = transaction._cache; |
| 4858 | var subCache = cache.get(prefix); |
| 4859 | if (!subCache) { |
| 4860 | subCache = new Map(); |
| 4861 | cache.set(prefix, subCache); |
| 4862 | } |
| 4863 | return subCache; |
| 4864 | } |
| 4865 | |
| 4866 | class LevelTransaction { |
| 4867 | constructor() { |