From e3cb3cbee6a9c0a68681168fdecb5124e1308f3f Mon Sep 17 00:00:00 2001 From: Doug Bruce Date: Wed, 29 May 2019 11:57:14 +0100 Subject: [PATCH] Correct redis flush call to flushdb --- beaker_extensions/redis_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beaker_extensions/redis_.py b/beaker_extensions/redis_.py index b8bb458..a8e0a46 100644 --- a/beaker_extensions/redis_.py +++ b/beaker_extensions/redis_.py @@ -78,7 +78,7 @@ def _format_pool_key(self, host, port, db): return '{0}:{1}:{2}'.format(host, port, self.db) def do_remove(self): - self.db_conn.flush() + self.db_conn.flushdb() def keys(self): return self.db_conn.keys('beaker:%s:*' % self.namespace)