sanic-session icon indicating copy to clipboard operation
sanic-session copied to clipboard

aioredis is now in redis >= 4.2

Open nc7s opened this issue 1 year ago • 0 comments

According to https://github.com/aio-libs/aioredis-py (which is now archived due to the merge):

Aioredis is now in redis-py 4.2.0rc1+ To install, just do pip install redis>=4.2.0rc1. The code is almost the exact same. You will just need to import like so:

from redis import asyncio as aioredis

This way you don't have to change all your code, just the imports.

Hopefully we can just remove this block:

https://github.com/ahopkins/sanic-session/blob/a1f91dd8c14c7ab2f2804b62283ebcff57fe0429/sanic_session/aioredis.py#L58-L61

(Personally I don't like naming the module using asyncio_redis as .redis, but that's your call.)

nc7s avatar May 20 '23 10:05 nc7s