Skip to content

Commit

Permalink
Merge pull request #430 from S2-/remove-cache
Browse files Browse the repository at this point in the history
add remove function to cache
  • Loading branch information
mde authored Mar 6, 2019
2 parents 9b5bbf1 + 2daec5d commit f2c77d7
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 f2c77d7

Please sign in to comment.