cache.js 219 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 const caches = {}; const get = key => { return caches[key]; }; const set = (key, value) => { caches[key] = value; }; const remove = (key) => { delete caches[key]; }; module.exports = { get, set, remove };