This commit is contained in:
Stephen Franceschelli
2019-07-15 11:41:38 -04:00
parent f26956e368
commit 9098200950
7043 changed files with 0 additions and 1866383 deletions

View File

@@ -1,19 +0,0 @@
//
'use strict';
function cacheWrapper (cache , key , fn ) {
if (!cache) {
return fn();
}
const cached = cache.get(key);
if (cached !== undefined) {
return cached;
}
const result = fn();
cache.set(key, result);
return result;
}
module.exports = cacheWrapper;