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