add remove function to ejs

This commit is contained in:
s2
2019-03-06 10:46:04 +01:00
parent 3c5892a944
commit 5135dad48e

View File

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