diff --git a/pydbantic/cache.py b/pydbantic/cache.py index 8596704..d101005 100644 --- a/pydbantic/cache.py +++ b/pydbantic/cache.py @@ -4,7 +4,7 @@ from pickle import dumps, loads import asyncio -import aioredis +from redis import asyncio as aioredis class Redis: diff --git a/requirements.txt b/requirements.txt index 5dbd5af..9275bfc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ SQLAlchemy==1.4.28 databases==0.6.0 -aioredis==2.0.0 +redis>=4.2.0 pydantic>=1.9.1 asyncpg==0.24.0 aiosqlite==0.17.0 diff --git a/setup.py b/setup.py index 513347b..e8b26e2 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ BASE_REQUIREMENTS = [ 'SQLAlchemy==1.4.28', 'databases==0.5.3', - 'aioredis==2.0.0', + 'redis>=4.2.0', 'pydantic>=1.9.1', 'alembic==1.8.1' ]