@netlify/content-engine
Version:
15 lines • 456 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCache = void 0;
const caches = new Map();
const getCache = (name) => {
let cache = caches.get(name);
if (!cache) {
const GatsbyCacheLmdb = require(`./cache-lmdb`).default;
cache = new GatsbyCacheLmdb({ name }).init();
caches.set(name, cache);
}
return cache;
};
exports.getCache = getCache;
//# sourceMappingURL=get-cache.js.map
;