Skip to content

Commit

Permalink
Merge pull request #103 from ArtemIsmagilov/alphabetical-methods-by-doc
Browse files Browse the repository at this point in the history
sort methods `ACL DELUSER` and `ACL DRYRUN` by alphabetically, checked doc
  • Loading branch information
mkmkme authored Oct 8, 2024
2 parents df59e4c + dee949e commit e9b7ba3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions valkey/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ def acl_cat(self, category: Union[str, None] = None, **kwargs) -> ResponseT:
pieces: list[EncodableT] = [category] if category else []
return self.execute_command("ACL CAT", *pieces, **kwargs)

def acl_dryrun(self, username, *args, **kwargs):
"""
Simulate the execution of a given command by a given ``username``.
For more information see https://valkey.io/commands/acl-dryrun
"""
return self.execute_command("ACL DRYRUN", username, *args, **kwargs)

def acl_deluser(self, *username: str, **kwargs) -> ResponseT:
"""
Delete the ACL for the specified ``username``\\s
Expand All @@ -85,6 +77,14 @@ def acl_deluser(self, *username: str, **kwargs) -> ResponseT:
"""
return self.execute_command("ACL DELUSER", *username, **kwargs)

def acl_dryrun(self, username, *args, **kwargs):
"""
Simulate the execution of a given command by a given ``username``.
For more information see https://valkey.io/commands/acl-dryrun
"""
return self.execute_command("ACL DRYRUN", username, *args, **kwargs)

def acl_genpass(self, bits: Union[int, None] = None, **kwargs) -> ResponseT:
"""Generate a random password value.
If ``bits`` is supplied then use this number of bits, rounded to
Expand Down

0 comments on commit e9b7ba3

Please sign in to comment.