This repository has been archived on 2025-10-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
gekko/web/state/cache.js
T
2021-06-06 20:25:14 +02:00

14 lines
212 B
JavaScript

const _ = require('lodash');
const cache = {};
module.exports = {
set: (name, val) => {
cache[name] = val;
return true;
},
get: name => {
if(_.has(cache, name))
return cache[name];
}
}