UNPKG

bluebot

Version:

A bitcoin trading bot for auto trading at various exchanges

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