Urara-Blog/node_modules/.pnpm-store/v3/files/f0/ce5475de8c96adb0d1c3613df264c1696d2f8339ab1bd922355534b2e06d532641e61315497177f7a425593d13380b44688c72bd7636ee02ac49b2f156313c
2022-08-14 01:14:53 +08:00

26 lines
409 B
Text

'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 = {};
};