Replace aioredis with redis-py

This commit is contained in:
long2ice
2022-06-17 11:01:47 +08:00
parent 7fa54d311f
commit 824e2e145f
6 changed files with 63 additions and 35 deletions

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "fastapi-cache2"
version = "0.1.8"
version = "0.1.9"
description = "Cache for FastAPI"
authors = ["long2ice <long2ice@gmail.com>"]
license = "Apache-2.0"
@@ -18,7 +18,7 @@ include = ["LICENSE", "README.md"]
python = "^3.7"
fastapi = "*"
uvicorn = "*"
aioredis = {version = "^2.0", optional = true}
redis = {version = "^4.2.0rc1", optional = true}
aiomcache = {version = "*", optional = true}
pendulum = "*"
aiobotocore = {version = "^1.4.1", optional = true}
@@ -38,7 +38,7 @@ build-backend = "poetry.masonry.api"
redis = ["aioredis"]
memcache = ["aiomcache"]
dynamodb = ["aiobotocore"]
all = ["aioredis","aiomcache"]
all = ["redis","aiomcache"]
[tool.black]
line-length = 100