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

See here: https://sqlmodel.tiangolo.com/tutorial/fastapi/relationships/#models-with-relationships My example code ```python class StrategyWithPortfolios(StrategyWithCategory): portfolios: list[Portfolio] = [] @router.get("/all") @cache(expire=60) async def read_strategies( session: Session = Depends(get_session), ) -> list[StrategyWithPortfolios]: """ get all Strategy """...

for example, if function A is decorated and will take 10s and 1 core CPU to return, what happens the function is call 10 times in in 1s? Does the...

I'm working on a project and have specified a dependency in the `pyproject.toml` file as follows: ```toml [tool.poetry.dependencies] fastapi-cache2 = {extras = ["redis"], git = "https://github.com/long2ice/fastapi-cache.git", rev = "8f0920d"} ```...

Bumps [types-redis](https://github.com/python/typeshed) from 4.6.0.7 to 4.6.0.20240311. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=types-redis&package-manager=pip&previous-version=4.6.0.7&new-version=4.6.0.20240311)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

auto-merge
dependencies
python

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.1 to 0.3.2. Release notes Sourced from ruff's releases. v0.3.2 Changes Preview features Improve single-with item formatting for Python 3.8 or older (#10276) Rule changes [pyupgrade] Allow...

auto-merge
dependencies
python

Bumps [redis](https://github.com/redis/redis-py) from 4.6.0 to 5.0.3. Release notes Sourced from redis's releases. 5.0.3 Changes 🐛 Bug Fixes Fix breaking change: message in LockError is now optional (#3176) 🧰 Maintenance Bump...

dependencies
python

Bumps [mypy](https://github.com/python/mypy) from 1.6.1 to 1.9.0. Changelog Sourced from mypy's changelog. Mypy Release Notes Mypy 1.9 We’ve just uploaded mypy 1.9 to the Python Package Index (PyPI). Mypy is a...

auto-merge
dependencies
python

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.333 to 1.1.353. Commits ba2747b Pyright NPM Package update to 1.1.353 (#253) 1b36e5d Pyright NPM Package update to 1.1.352 47b23ec Drop support for node.js v12 fbe3722 Pyright...

auto-merge
dependencies
python

Bumps [types-aiobotocore](https://github.com/youtype/mypy_boto3_builder) from 2.7.0 to 2.12.1. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=types-aiobotocore&package-manager=pip&previous-version=2.7.0&new-version=2.12.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

auto-merge
dependencies
python

Python `hash()` function is salted by default (see [__hash__](https://docs.python.org/3.8/reference/datamodel.html#object.__hash__) docs). Therefore the hash of the same object doesn't normally produce the same value in different processes. As a result, because...