This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port redis-py impl and tests to aioredis.
- Loading branch information
1 parent
53d8103
commit c26a671
Showing
102 changed files
with
13,128 additions
and
16,631 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,59 @@ | ||
from .commands import GeoMember, GeoPoint, Redis, create_redis, create_redis_pool | ||
from .connection import RedisConnection, create_connection | ||
from .errors import ( | ||
AuthError, | ||
ChannelClosedError, | ||
ConnectionClosedError, | ||
ConnectionForcedCloseError, | ||
MasterNotFoundError, | ||
MasterReplyError, | ||
MaxClientsError, | ||
MultiExecError, | ||
PipelineError, | ||
PoolClosedError, | ||
ProtocolError, | ||
from aioredis.client import Redis, StrictRedis | ||
from aioredis.connection import ( | ||
BlockingConnectionPool, | ||
Connection, | ||
ConnectionPool, | ||
SSLConnection, | ||
UnixDomainSocketConnection, | ||
) | ||
from aioredis.exceptions import ( | ||
AuthenticationError, | ||
AuthenticationWrongNumberOfArgsError, | ||
BusyLoadingError, | ||
ChildDeadlockedError, | ||
ConnectionError, | ||
DataError, | ||
InvalidResponse, | ||
PubSubError, | ||
ReadOnlyError, | ||
RedisError, | ||
ReplyError, | ||
SlaveNotFoundError, | ||
SlaveReplyError, | ||
WatchVariableError, | ||
ResponseError, | ||
TimeoutError, | ||
WatchError, | ||
) | ||
from .pool import ConnectionsPool, create_pool | ||
from .pubsub import Channel | ||
from .sentinel import RedisSentinel, create_sentinel | ||
from aioredis.utils import from_url | ||
|
||
|
||
def int_or_str(value): | ||
try: | ||
return int(value) | ||
except ValueError: | ||
return value | ||
|
||
__version__ = "1.3.1" | ||
|
||
__version__ = "3.5.3" | ||
VERSION = tuple(map(int_or_str, __version__.split("."))) | ||
|
||
__all__ = [ | ||
# Factories | ||
"create_connection", | ||
"create_pool", | ||
"create_redis", | ||
"create_redis_pool", | ||
"create_sentinel", | ||
# Classes | ||
"RedisConnection", | ||
"ConnectionsPool", | ||
"AuthenticationError", | ||
"AuthenticationWrongNumberOfArgsError", | ||
"BlockingConnectionPool", | ||
"BusyLoadingError", | ||
"ChildDeadlockedError", | ||
"Connection", | ||
"ConnectionError", | ||
"ConnectionPool", | ||
"DataError", | ||
"from_url", | ||
"InvalidResponse", | ||
"PubSubError", | ||
"ReadOnlyError", | ||
"Redis", | ||
"GeoPoint", | ||
"GeoMember", | ||
"Channel", | ||
"RedisSentinel", | ||
# Errors | ||
"RedisError", | ||
"ReplyError", | ||
"MaxClientsError", | ||
"AuthError", | ||
"ProtocolError", | ||
"PipelineError", | ||
"MultiExecError", | ||
"WatchVariableError", | ||
"ConnectionClosedError", | ||
"ConnectionForcedCloseError", | ||
"PoolClosedError", | ||
"ChannelClosedError", | ||
"MasterNotFoundError", | ||
"SlaveNotFoundError", | ||
"ReadOnlyError", | ||
"MasterReplyError", | ||
"SlaveReplyError", | ||
"ResponseError", | ||
"SSLConnection", | ||
"StrictRedis", | ||
"TimeoutError", | ||
"UnixDomainSocketConnection", | ||
"WatchError", | ||
] |
Oops, something went wrong.