UNPKG

imc

Version:

IMC is an In-Memory Cache key-value store.

3 lines (2 loc) 892 B
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).IMC={})}(this,function(t){"use strict";var o=function(){return(o=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},e=(n.prototype.set=function(t,e){"string"==typeof t?this.store[t]=e:t instanceof Object&&Object.keys(t).length&&(this.store=o(o({},t),this.store))},n.prototype.get=function(t){return t?this.store[t]:this.store},n.prototype.delete=function(t){delete this.store[t]},n.prototype.clear=function(){this.store={}},n);function n(t){void 0===t&&(t={}),this.store=t}var r=new e;t.Cache=e,t.cache=r,t.default=r,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=imc.min.js.map