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 119 fastapi-cache issues
Sort by recently updated
recently updated
newest added

Would it be possible to flush also the db and or all when clearing a specific namespace or the entire cache? It seems keys are removed but space is still...

Hello, is there any way to override the cache-control header? I am running into an issue where I need to clear the cache key on update, but since fastapi-cache is...

Would it be possible to cache images with byte response type? If so how? with a custom encoder? eg with image_tile -> bytes: `@router.get("/{cog_name}/{z}/{x}/{y}") async def get_cog_tile(cog_name: str, z: int,...

The current functionality of fastapi-cache is not returning the cached headers, only the cached body with the regular headers. This limitation is affecting the possible usage of this package in...

There are several issues that affect endpoints that can (optionally) return a `Response` object: - If they are annotated to return a `Response`, on a cache hit there is an...

enhancement

Good library, thank you - I have built some of this functionality by hand before but it's nice to see a good library instead. Unfortunately, I can't make use of...

Right now `fastapi-cache` is incompatible with modern `pydanticV2` and `fastapi` respectively. For example: ``` AttributeError: module 'pydantic.fields' has no attribute 'ModelField' ``` it would be nice to adapt to the...

When I type my dependencies, I got an error Example: ```python from sqlalchemy.ext.asyncio import AsyncSession from fastapi_cache.decorator import cache from fastapi import APIRouter, Depends user_router = APIRouter( prefix="/users", tags=["users"], )...