Repository navigation
0.3.0a1
Pre-release
Pre-release
Alpha release 0.3.0a1.
Experimental, not production-ready. The fastapi_cache import and public API are unchanged from fastapi-cache2 0.2.2.
Implemented
- Error responses (status >= 400) are not cached.
- Opt-in
TypedJsonCoderfor Pydantic v2 typed restoration. clear(key=...)deletes only that key; namespace clears require the:boundary; Redis standalone usesSCAN/UNLINK; Redis Cluster namespace clear raisesNotImplementedError.- Legacy compatibility matrix: Python 3.8/3.9, FastAPI 0.111.1, Pydantic 1.10.27/2.8.2.
Targeted for later 0.3.0 pre-releases
Auth/privacy defaults, stable ETag, InMemory expiry/isolation, Cache-Control/max-age, non-JSON bypass, _spec_type collision handling, explicit re-init(), and the Redis client/server matrix.
Install
pip install fastapi-cache-stable==0.3.0a1See MIGRATION.md and COMPATIBILITY.md for migration notes and known limitations.