Redis client and others (#4178)

Co-authored-by: Richard Lindsley <rich.lindsley@gmail.com>
This commit is contained in:
Rich Li
2020-06-06 08:07:45 -07:00
committed by GitHub
parent 4199352287
commit 415da3ddd4

View File

@@ -1,5 +1,5 @@
from datetime import timedelta
from typing import Any, Iterable, Iterator, Text, Optional, Mapping, Tuple, Union, Callable, List, Dict
from typing import Any, Iterable, Iterator, Text, Optional, Mapping, Tuple, Union, Callable, List, Dict, Set
from .connection import ConnectionPool
@@ -77,10 +77,11 @@ class Redis(object):
def parse_response(self, connection, command_name, **options): ...
def bgrewriteaof(self): ...
def bgsave(self): ...
def client_kill(self, address): ...
def client_list(self): ...
def client_getname(self): ...
def client_setname(self, name): ...
def client_id(self) -> int: ...
def client_kill(self, address: Text) -> bool: ...
def client_list(self) -> List[Dict[str, str]]: ...
def client_getname(self) -> Optional[str]: ...
def client_setname(self, name: Text) -> bool: ...
def readwrite(self) -> bool: ...
def readonly(self) -> bool: ...
def config_get(self, pattern=...): ...
@@ -193,17 +194,17 @@ class Redis(object):
def zscan(self, name, cursor=..., match=..., count=..., score_cast_func=...): ...
def zscan_iter(self, name, match=..., count=..., score_cast_func=...): ...
def sadd(self, name, *values): ...
def scard(self, name): ...
def scard(self, name: _Key) -> int: ...
def sdiff(self, keys, *args): ...
def sdiffstore(self, dest, keys, *args): ...
def sinter(self, keys, *args): ...
def sinterstore(self, dest, keys, *args): ...
def sismember(self, name, value): ...
def smembers(self, name): ...
def smembers(self, name: _Key) -> Set[_Str]: ...
def smove(self, src, dst, value): ...
def spop(self, name, count: Optional[int] = ...): ...
def srandmember(self, name, number=...): ...
def srem(self, name, *values): ...
def srem(self, name: _Key, *values: _Str) -> int: ...
def sunion(self, keys, *args): ...
def sunionstore(self, dest, keys, *args): ...
def xack(self, name, groupname, *ids): ...
@@ -229,7 +230,7 @@ class Redis(object):
def xinfo_consumers(self, name, groupname): ...
def xinfo_groups(self, name): ...
def xinfo_stream(self, name): ...
def xlen(self, name): ...
def xlen(self, name: _Key) -> int: ...
def xpending(self, name, groupname): ...
def xpending_range(self, name, groupname, min, max, count, consumername=...): ...
def xrange(self, name, min=..., max=..., count=...): ...