From 8585ef183b88ed3fbc4fd4ce83c9a0f9690e1c7e Mon Sep 17 00:00:00 2001 From: Patrick Malouin Date: Thu, 20 Sep 2018 10:36:49 -0400 Subject: [PATCH] Use `flushdb` instead of `flushall` --- lib/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.js b/lib/db.js index 838593a..966b46b 100644 --- a/lib/db.js +++ b/lib/db.js @@ -269,7 +269,7 @@ class LimitDBRedis extends EventEmitter { const dbs = this.redis.nodes ? this.redis.nodes('master') : [this.redis]; async.each(dbs, (db, cb) => { - db.flushall(cb); + db.flushdb(cb); }, callback); } }