Sha256: e46dcc11c6e844f644ca331bf7d5caeb3ad1357ca540215da9668f6c58c6aa89
Contents?: true
Size: 409 Bytes
Versions: 279
Compression:
Stored size: 409 Bytes
Contents
'use strict'; var Cache = module.exports = function Cache() { this._cache = {}; }; Cache.prototype.put = function Cache_put(key, value) { this._cache[key] = value; }; Cache.prototype.get = function Cache_get(key) { return this._cache[key]; }; Cache.prototype.del = function Cache_del(key) { delete this._cache[key]; }; Cache.prototype.clear = function Cache_clear() { this._cache = {}; };
Version data entries
279 entries across 162 versions & 21 rubygems