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

chore: Update Redis Dependency and Refactor Async Imports #10

Conversation

pankaj28843
Copy link
Contributor

@pankaj28843 pankaj28843 commented Jun 21, 2023

Summary

  • Replace aioredis==2.0.1 with redis==4.5.5
  • Migrate Redis imports to utilize the asyncio module in the redis package

Rationale

The aioredis package is deprecated and not advised for use with Python 3.11. It has been superseded by the redis library, which includes necessary async support.

See aio-libs-abandoned/aioredis-py#1409 and https://github.com/aio-libs/aioredis-py/pull/1302/files for details.

- Replace `aioredis==2.0.1` with `redis==4.5.5`
- Migrate Redis imports to utilize the `asyncio` module in the `redis` package

The `aioredis` package is deprecated and not advised for use with Python 3.11. It has been superseded by the `redis` library, which includes necessary async support.
[See aio-libs-abandoned/aioredis-py#1409](aio-libs-abandoned/aioredis-py#1409) for details.
@pankaj28843 pankaj28843 force-pushed the chore-update-redis-dependency-and-refactor-Redis-imports branch from c90a770 to 1a99aa7 Compare June 21, 2023 11:18
@zhanymkanov
Copy link
Owner

That is great, thank you!

@jones-so
Copy link

from redis.asyncio import Redis
ModuleNotFoundError: No module named 'redis.asyncio'; 'redis' is not a package

Hi,Brother, how to solve this error reported by redis.

@skok1025
Copy link

Thanks to you, it helped me a lot.

@jones-so
Copy link

jones-so commented Dec 18, 2023 via email

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

Successfully merging this pull request may close these issues.

4 participants