而其他人不反对。您可以返回通过这种编码器序列化的对象,或者在redis缓存参数中将其设置为编码器。看到...
fastapi-cacheis a tool to cache FastAPI endpoint and function results, with backends supporting Redis, Memcached, and Amazon DynamoDB. Features Supportsredis,memcache,dynamodb, andin-memorybackends. Easy integration withFastAPI. Support for HTTP cache headers likeETagandCache-Control, as well as cond...
fastapi-cache is a tool to cache fastapi response and function result, with backends support redis and memcache. - fastapi-cache/poetry.lock at master · rushilsrivastava/fastapi-cache
>pip install"fastapi-cache2[redis]" or >pip install"fastapi-cache2[memcache]" or >pip install"fastapi-cache2[dynamodb]" Usage Quick Start fromcollections.abcimportAsyncIteratorfromcontextlibimportasynccontextmanagerfromfastapiimportFastAPIfromstarlette.requestsimportRequestfromstarlette.responsesimportResponsefr...
fastapi-cache is a tool to cache fastapi response and function result, with backends support redis and memcached. - History for poetry.lock - Yolley/fastapi-cache