Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions sanic_session/aioredis.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
from sanic_session.base import BaseSessionInterface

try:
import aioredis
# redis was merged with aioredis https://github.com/redis/redis-py/releases/tag/v4.2.0rc1
from redis import asyncio as aioredis
except ImportError:
aioredis = None
try:
import aioredis
except ImportError:
aioredis = None


class AIORedisSessionInterface(BaseSessionInterface):
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
Expand Down