MCPcopy Index your code
hub / github.com/apache/pouchdb / getCacheFor

Function getCacheFor

lib/index.js:4855–4864  ·  view source on GitHub ↗
(transaction, store)

Source from the content-addressed store, hash-verified

4853// similar to an idb or websql transaction object
4854
4855function 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
4866class LevelTransaction {
4867 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…