fastapi-cache
fastapi-cache copied to clipboard
我集成了你的库,但报错,是什么原因呢?我的环境是 Python3.8
async with self.redis.pipeline(transaction=True) as pipe: TypeError: pipeline() got an unexpected keyword argument 'transaction'
aioredis版本是多少,看情况是版本不兼容
我aioredis 版本是1.3.1 最新版是2.0.0 ,是因为版本问题?
是的,我这个包应该有限制版本
我修改为最新版的2.0.0了,但很奇怪,我按照你的文档集成进去,却没有任何缓存,还是每次都从数据表里面读数据,而且redis里面也是没有任何KEY出现
只会缓存get请求
嗯,而且我发现了Python3.7版本对aioredis支持不好,3.8就没有问题,但暂时先不更新了,有计划后期加上缓存post请求吗?
Request handling other than GET is part of #75.