Files
30-seconds-of-code/node_modules/gatsby/dist/utils/get-cache.js
2019-08-20 15:52:05 +02:00

19 lines
307 B
JavaScript

"use strict";
const Cache = require(`./cache`);
let caches = new Map();
module.exports = function getCache(name) {
let cache = caches.get(name);
if (!cache) {
cache = new Cache({
name
}).init();
caches.set(name, cache);
}
return cache;
};
//# sourceMappingURL=get-cache.js.map