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

Bumps [twine](https://github.com/pypa/twine) from 4.0.2 to 5.0.0. Changelog Sourced from twine's changelog. Twine 5.0.0 (2024-02-10) Bugfixes ^^^^^^^^ Use email.message instead of cgi as cgi has been deprecated ([#969](https://github.com/pypa/twine/issues/969) <https://github.com/pypa/twine/issues/969>_) Misc ^^^^...

dependencies
python

![image](https://github.com/long2ice/fastapi-cache/assets/56359329/2daab763-f6fb-4ccc-80cb-1e9875ae581b) In version 3.0.0 of pendulum, this issue has been resolved, so we need to upgrade its version if it is in the Python 3.12 environment. https://github.com/sdispater/pendulum/issues/696

The redis library is specified with an upper bound: https://github.com/long2ice/fastapi-cache/blob/91ba6d75524b1f6a17ae6a3300ab51b9aa1fcf71/pyproject.toml#L21C1-L21C51 This is a bad practice in libraries, it can easily cause impossible dependencies combinations. For a more in-depth discussion: https://iscinumpy.dev/post/bound-version-constraints/

I've noticed, that response model is missing in the OpenAPI spec and Swagger for @cache decorated endpoints unless `response_model` is specified explicitly in the endpoint handler decorator, which is optional...

See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#no-cache > The no-cache response directive indicates that the response can be stored in caches, but the response must be validated with the origin server before each reuse, even...

I think the end part of the code is making the browser to not refresh the cache, I saw discussions about it in the forum but not sure how we...