From 2daec5dc616f8d4963a5576c53d538fe04fee202 Mon Sep 17 00:00:00 2001 From: s2 Date: Wed, 6 Mar 2019 10:43:13 +0100 Subject: [PATCH] add remove function to cache --- lib/utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/utils.js b/lib/utils.js index 2abaaf5a..b73e8078 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -158,6 +158,9 @@ exports.cache = { get: function (key) { return this._data[key]; }, + remove: function (key) { + delete this._data[key]; + }, reset: function () { this._data = {}; }