Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aioredis is now in redis >= 4.2 #95

Open
nc7s opened this issue May 20, 2023 · 0 comments
Open

aioredis is now in redis >= 4.2 #95

nc7s opened this issue May 20, 2023 · 0 comments

Comments

@nc7s
Copy link

nc7s commented May 20, 2023

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:

if aioredis is None:
raise RuntimeError(
"Please install aioredis: pip install sanic_session[aioredis]"
)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant