summaryrefslogtreecommitdiff
path: root/redis/commands.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-09-01 14:57:07 +0300
committerGitHub <noreply@github.com>2021-09-01 14:57:07 +0300
commitda6e3524622c9e9862ac57de60d9f188e106b29d (patch)
tree9c81fdde269f0297ce76963d65669f86e899946e /redis/commands.py
parent51516cbd16b538584b7ea8c6a0cdbc76cda3d90a (diff)
downloadredis-py-da6e3524622c9e9862ac57de60d9f188e106b29d.tar.gz
Adding DELUSER list of users support (#1562)
Adding support for ACL help Part of #1546
Diffstat (limited to 'redis/commands.py')
-rw-r--r--redis/commands.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/redis/commands.py b/redis/commands.py
index 27276bc..c49f043 100644
--- a/redis/commands.py
+++ b/redis/commands.py
@@ -48,9 +48,9 @@ class Commands:
pieces = [category] if category else []
return self.execute_command('ACL CAT', *pieces)
- def acl_deluser(self, username):
+ def acl_deluser(self, *username):
"Delete the ACL for the specified ``username``"
- return self.execute_command('ACL DELUSER', username)
+ return self.execute_command('ACL DELUSER', *username)
def acl_genpass(self, bits=None):
"""Generate a random password value.
@@ -77,6 +77,12 @@ class Commands:
"""
return self.execute_command('ACL GETUSER', username)
+ def acl_help(self):
+ """The ACL HELP command returns helpful text describing
+ the different subcommands.
+ """
+ return self.execute_command('ACL HELP')
+
def acl_list(self):
"Return a list of all ACLs on the server"
return self.execute_command('ACL LIST')