diff options
author | Itamar Haber <itamar@redislabs.com> | 2018-11-08 22:02:18 +0200 |
---|---|---|
committer | Itamar Haber <itamar@redislabs.com> | 2018-11-08 22:02:18 +0200 |
commit | 345519d5999dee6cfa028fe8b7b707757dcd23fd (patch) | |
tree | d3b89ba6ff23f50a1db0278d9dc90ef4fa2c1f5d | |
parent | 653d4b4bd5296f852cb7772b5d6bddb542184f43 (diff) | |
download | redis-py-345519d5999dee6cfa028fe8b7b707757dcd23fd.tar.gz |
Renames sync to asynchronous
Signed-off-by: Itamar Haber <itamar@redislabs.com>
-rwxr-xr-x | redis/client.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/redis/client.py b/redis/client.py index 9b0086b..d82078e 100755 --- a/redis/client.py +++ b/redis/client.py @@ -841,27 +841,27 @@ class StrictRedis(object): "Echo the string back from the server" return self.execute_command('ECHO', value) - def flushall(self, sync=True): + def flushall(self, asynchronous=False): """ Delete all keys in all databases on the current host. - ``sync`` indicates whether the operation is executed - synchronously by the server. + ``asynchronous`` indicates whether the operation is + executed asynchronously by the server. """ args = [] - if not sync: + if not asynchronous: args.append(Token.get_token('ASYNC')) return self.execute_command('FLUSHALL', *args) - def flushdb(self, sync=True): + def flushdb(self, asynchronous=False): """ Delete all keys in the current database. - ``sync`` indicates whether the operation is executed - synchronously by the server. + ``asynchronous`` indicates whether the operation is + executed asynchronously by the server. """ args = [] - if not sync: + if not asynchronous: args.append(Token.get_token('ASYNC')) return self.execute_command('FLUSHDB', *args) |