diff options
| author | Andy McCurdy <andy@andymccurdy.com> | 2018-11-15 11:57:10 -0800 |
|---|---|---|
| committer | Andy McCurdy <andy@andymccurdy.com> | 2018-11-15 11:57:10 -0800 |
| commit | 40c4633e08d3f14d0abbaa22592e8c4d2f859c8b (patch) | |
| tree | 283c4b23d92e494bbdb92136675af1c079e1eea5 | |
| parent | f396979cd9ff4f57730a97c87dd6ee8121385e80 (diff) | |
| download | redis-py-40c4633e08d3f14d0abbaa22592e8c4d2f859c8b.tar.gz | |
Fix broken asynchronous check in flushdb and flushall
Fixes #1070
| -rwxr-xr-x | redis/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py index 4e7d3f2..d62e20e 100755 --- a/redis/client.py +++ b/redis/client.py @@ -876,7 +876,7 @@ class Redis(object): executed asynchronously by the server. """ args = [] - if not asynchronous: + if asynchronous: args.append(Token.get_token('ASYNC')) return self.execute_command('FLUSHALL', *args) @@ -888,7 +888,7 @@ class Redis(object): executed asynchronously by the server. """ args = [] - if not asynchronous: + if asynchronous: args.append(Token.get_token('ASYNC')) return self.execute_command('FLUSHDB', *args) |
