Skip to content

Commit

Permalink
add remove function to cache
Browse files Browse the repository at this point in the history
  • Loading branch information
5im-0n committed Mar 6, 2019
1 parent 9b5bbf1 commit 2daec5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ exports.cache = {
get: function (key) {
return this._data[key];
},
remove: function (key) {
delete this._data[key];
},
reset: function () {
this._data = {};
}
Expand Down

0 comments on commit 2daec5d

Please sign in to comment.