Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort methods ACL DELUSER and ACL DRYRUN by alphabetically, checked doc #103

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading