redis: add acl stubs (#4690)

This commit is contained in:
Christine
2020-10-23 03:50:18 -04:00
committed by GitHub
parent 6ff5b88ca7
commit b76d9e46b8

View File

@@ -81,6 +81,28 @@ class Redis(object):
def pubsub(self, shard_hint: Any = ..., ignore_subscribe_messages: bool = ...) -> PubSub: ...
def execute_command(self, *args, **options): ...
def parse_response(self, connection, command_name, **options): ...
def acl_cat(self, category: Optional[Text] = ...) -> List[str]: ...
def acl_deluser(self, username: Text) -> int: ...
def acl_genpass(self) -> Text: ...
def acl_getuser(self, username: Text) -> Optional[Any]: ...
def acl_list(self) -> List[Text]: ...
def acl_load(self) -> bool: ...
def acl_setuser(
self,
username: Text = ...,
enabled: bool = ...,
nopass: bool = ...,
passwords: Optional[Sequence[Text]] = ...,
hashed_passwords: Optional[Sequence[Text]] = ...,
categories: Optional[Sequence[Text]] = ...,
commands: Optional[Sequence[Text]] = ...,
keys: Optional[Sequence[Text]] = ...,
reset: bool = ...,
reset_keys: bool = ...,
reset_passwords: bool = ...,
) -> bool: ...
def acl_users(self) -> List[Text]: ...
def acl_whoami(self) -> Text: ...
def bgrewriteaof(self): ...
def bgsave(self): ...
def client_id(self) -> int: ...