mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
redis: add acl stubs (#4690)
This commit is contained in:
22
third_party/2and3/redis/client.pyi
vendored
22
third_party/2and3/redis/client.pyi
vendored
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user