mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 04:57:54 +00:00
Replace aioredis with redis-py
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from typing import Tuple
|
||||
|
||||
from aioredis import Redis
|
||||
from redis.asyncio.client import Redis
|
||||
|
||||
from fastapi_cache.backends import Backend
|
||||
|
||||
|
||||
@@ -64,4 +64,4 @@ class PickleCoder(Coder):
|
||||
|
||||
@classmethod
|
||||
def decode(cls, value: Any):
|
||||
return pickle.loads(value) # nosec:B403
|
||||
return pickle.loads(value) # nosec:B403,B301
|
||||
|
||||
Reference in New Issue
Block a user