MCPcopy
hub / github.com/apache/pouchdb / getCacheFor

Function getCacheFor

lib/index.es.js:4850–4859  ·  view source on GitHub ↗
(transaction, store)

Source from the content-addressed store, hash-verified

4848// similar to an idb or websql transaction object
4849
4850function 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
4861class LevelTransaction {
4862 constructor() {

Callers 2

getMethod · 0.70
batchMethod · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…