Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Aioredis is now in redis-py 4.2.0rc1! #1301

Open
Andrew-Chen-Wang opened this issue Feb 22, 2022 · 3 comments
Open

Aioredis is now in redis-py 4.2.0rc1! #1301

Andrew-Chen-Wang opened this issue Feb 22, 2022 · 3 comments
Labels

Comments

@Andrew-Chen-Wang
Copy link
Collaborator

Andrew-Chen-Wang commented Feb 22, 2022

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.

https://github.com/redis/redis-py/releases/tag/v4.2.0rc1

Now that aioredis is under Redis officially, I hope there will never be an unmaintained, asyncio Redis lib in the Python ecosystem again. I will be helping out maintenance at Redis-py for the foreseeable future just to get some of the asyncio stuff out of the way. There are also some bugs that didn't make it into the PR that I'll be slowly migrating over throughout the next few weeks -- so long as my exams don't kill me beforehand :)

Thank you all so much for your commitment to this repository! Thank you so much to @abrookins @seandstewart @bmerry for all the commits and maintenance. And thank you to everyone here who has been adopting the new code base and squashing bugs. It's been an honor!

Cheers,
Andrew

@Andrew-Chen-Wang Andrew-Chen-Wang changed the title Aioredis is now in redis-py! Aioredis is now in redis-py 4.2.0rc1! Feb 22, 2022
@Andrew-Chen-Wang Andrew-Chen-Wang pinned this issue Feb 22, 2022
@Olegt0rr
Copy link
Contributor

Olegt0rr commented Mar 9, 2022

    async with redis.lock(
AttributeError: __aenter__

locks not implemented

@Andrew-Chen-Wang
Copy link
Collaborator Author

They don't work. We're still speculating how to do the locks properly since there was a debate on whether aredis's lock was correct. But aredis's lock does uhh functionally work so you can take their code. I think I'llmport it over too so it's not a big surprise.

@m-novikov
Copy link
Contributor

When this project would be reverted to aioredis codebase instead of current one?

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

No branches or pull requests

3 participants