Skip to content

Commit

Permalink
Replace aioredis with redis-py
Browse files Browse the repository at this point in the history
closes #3574
#3574

(cherry picked from commit 099e2ea)
  • Loading branch information
dralley authored and gerrod3 committed Mar 26, 2024
1 parent c09b5dd commit 53d6abd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/3574.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replaced now-unmaintained aioredis dependency with the functionality built into redis-py (which we are already using).
2 changes: 1 addition & 1 deletion pulpcore/app/redis_connection.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from redis import Redis
from aioredis import Redis as aRedis
from redis.asyncio import Redis as aRedis

from pulpcore.app.settings import settings

Expand Down
2 changes: 1 addition & 1 deletion pulpcore/cache/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from aiohttp.web_exceptions import HTTPFound

from redis import ConnectionError
from aioredis import ConnectionError as AConnectionError
from redis.asyncio import ConnectionError as AConnectionError

from pulpcore.app.settings import settings
from pulpcore.app.redis_connection import (
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
aiodns>=3.0,<=3.1.1
aiofiles>=22.1,<=23.3.0
aiohttp>=3.8.1,<3.9.2
aioredis>=2.0.1,<=2.0.1
asyncio-throttle>=1.0,<=1.0.2
async-timeout>=4.0.3,<4.0.4;python_version<"3.11"
backoff>=2.1.2,<2.2.2
Expand Down

0 comments on commit 53d6abd

Please sign in to comment.