Renames sync to asynchronous
@@ -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)
