asyncio (PEP 3156) Redis support
New features:
create_redis
will yield Redis
instance instead of RedisPool
(see #129);create_reconnecting_redis
, create_redis_pool
should be used instead;migrate_keys
command (see #187);zrevrangebylex
command (see #201);command
, command_count
, command_getkeys
and comman_info
commands (see #229);Fixed:
create_redis
and create_redis_pool
;__aiter__()
(see #192);with (yield from pool) as conn
(see #205);stop()
(see #211);Misc:
New:
zrevrangebylex
command (see #201);Fixed:
asyncio.Lock
deadlock issue (see #231 and #241);NEW:
Channel
instances (see #168);aioredis.pubsub.Receiver
(see #176);aioredis.abc
module providing abstract base classes
defining interface for basic lib components (see #176);FIX:
MISC:
async
/await
syntax
also keeping yield from
examples for history (see #173);NEW:
FIX:
MISC:
NEW:
hmset_dict
command
(see #130);RedisConnection.address
property;minsize
/maxsize
must not be None
;close()
/wait_closed()
/closed
interface for pool
(see #128);FIX:
hstrlen
;MISC:
create_pool()
minsize default value changed to 1;time()
convertion to float
(see #126);hmset()
method to return bool instead of b'OK'
(see #126);tr.execute()
to fail)
(see #121);asyncio.Future
uses with utility method
(get ready to Python 3.5.2 loop.create_future()
);Changes:
aioredis.ConnectionClosedError
raised in execute_pubsub
as well (see #108);Redis.slaveof()
method signature changed: now to disable
replication one should call redis.slaveof(None)
instead of redis.slaveof()
;Changes:
iter()
method to aioredis.Channel
allowing to use it
with async for
(see #89);async
/await
syntax (see #93);create_connection
(see #90);asyncio.async
calls with wrapper that respects asyncio version (see #101);aioredis.ConnectionClosedError
exception added. Raised if connection to Redis server is lost (see #108 and #109);aioredis.util.decode
to recursively decode list responses;