Cache library for FastAPI with tag based invalidation
Project description
FastAPI-Caching
Cache library for FastAPI with tag based invalidation
Features
- Automatic response cache fetching using FastAPI dependencies
- Fine-grained control over when to return and set the cache
- Ability to invalidate cached objects based on a concept of associated tags. See examples/redis_app for an example.
Installation
With in-memory support only:
pip install fastapi-caching
NOTE: In-memory backend is only recommended when your app is only run as a single instance.
With redis support (through the aioredis library):
pip install fastapi-caching[redis]
Usage examples
Examples on how to use can be found here.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastapi-caching-0.1.1.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file fastapi-caching-0.1.1.tar.gz
.
File metadata
- Download URL: fastapi-caching-0.1.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5c8951c1b03b282b0fcd5a8b2f77b196498e91c73d1eaeabafd7f892d6efca9 |
|
MD5 | ed5ef2cb70d883df2c2f4c30e4ba6cfc |
|
BLAKE2b-256 | 086ff69ecbf9d30048a6823f9d3c3b904e24e703c5846eb65f57f007fd091620 |
File details
Details for the file fastapi_caching-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: fastapi_caching-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f98dfcf46841328918dff69ea181afa0a1d473a0c72222234582dfebbe7a923 |
|
MD5 | f2f5f5a0e697026c6f1e43bff956f46b |
|
BLAKE2b-256 | b1f7336edb9867b40b7d267bc15368e2579e6d984057ee7685f23450f040c27d |