UNPKG

simple-breakpad-server

Version:
22 lines (18 loc) 333 B
(function() { var cache; cache = {}; module.exports = { clear: function() { return cache = {}; }, get: function(id) { return cache[id]; }, set: function(id, data) { return cache[id] = data; }, has: function(id) { return cache.hasOwnProperty(id); } }; }).call(this);