Avoids to delete empty keys
This commit is contained in:
parent
ec23a9de67
commit
17411f2bb6
@ -15,6 +15,10 @@ module.exports.clean = function clean(pattern, callback) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
if (!keys || !keys.length) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
metadataBackend.redisCmd(5, 'DEL', keys, callback);
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user