WIP - add extractor, generate snippet_data
This commit is contained in:
19
node_modules/gatsby/dist/utils/get-cache.js
generated
vendored
Normal file
19
node_modules/gatsby/dist/utils/get-cache.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
"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
|
||||
Reference in New Issue
Block a user