add remove function to cache

This commit is contained in:
s2
2019-03-06 10:43:13 +01:00
parent 9b5bbf11a6
commit 2daec5dc61

View File

@@ -158,6 +158,9 @@ exports.cache = {
get: function (key) {
return this._data[key];
},
remove: function (key) {
delete this._data[key];
},
reset: function () {
this._data = {};
}