UNPKG

260 BJavaScriptView Raw
1
2!function(exports) {
3 exports.Cache = Cache
4
5 function Cache(opts) {
6 this.opts = Object.assign({
7 limit: 10000
8 }, opts)
9 }
10 var proto = Cache.prototype = Object.create(null)
11 proto.set = function cacheSet(key, value) {
12 this[key] = value
13 }
14
15
16}(this)
17