Skip to content

Commit 2daec5d

Browse files
committed
add remove function to cache
1 parent 9b5bbf1 commit 2daec5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/utils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ exports.cache = {
158158
get: function (key) {
159159
return this._data[key];
160160
},
161+
remove: function (key) {
162+
delete this._data[key];
163+
},
161164
reset: function () {
162165
this._data = {};
163166
}

0 commit comments

Comments
 (0)