fastapi-cache icon indicating copy to clipboard operation
fastapi-cache copied to clipboard

fastapi-cache is a tool to cache fastapi response and function result, with backends support redis and memcached.

Results 164 fastapi-cache issues
Sort by recently updated
recently updated
newest added

Hello there! I want to propose a cache invalidation feature based on tags. It would be similar to Redux Toolkit query invalidation: https://redux-toolkit.js.org/rtk-query/usage/mutations#revalidation-example. I am providing my initial implementation for...

I cannot pass a direct FastAPI response like `JSON/ORJSONResponse` as an output for the FastAPI route; when I do, the first response is correct, but then the first cache HIT...

bug
help wanted
needs-triage

closes https://github.com/long2ice/fastapi-cache/issues/434

My colleague and I had the issue that we had to use async everytime we use the cache decorator, even if we didn't want to mark that function as async....

Versions: ```bash fastapi-cache2==0.2.2 fastapi-cache2[redis]==0.2.2 .venv ❯ python --version Python 3.12.4 ``` Redis: `docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:7.4.0-v0` Code: ```python from collections.abc import AsyncIterator from contextlib import asynccontextmanager...

bug
invalid
cant-reproduce

The parameter cache_status_header for the @cache decorator to change the name of the header doesn't work. Also furthermore the status of this header always give me MISS for some reason?

I've tried implementing the fastapi-cache2 package, but I'm consistently getting a MISS value for the cache header. I've verified my configuration and Redis connection settings. Could you please help me...

Since Valkey was forked from Redis it remains API compatible with Redis. For now. But there's much activity and progress going on with Valkey, including support in the Python client...

Is it possible to bump the current version of Redis to 5.0.8? Because fastapi-cache2[redis] (0.2.2) depends on redis (>=4.2.0rc1,0.2.2,=0.2.2,=4.2.0rc1,

Check out this simple code snippet - ``` from fastapi import FastAPI, Header from fastapi_cache import FastAPICache from fastapi_cache.decorator import cache from fastapi_cache.backends.inmemory import InMemoryBackend app = FastAPI() @app.on_event("startup") async...