Skip to content

0.3.0a1

Pre-release
Pre-release

Choose a tag to compare

@agustin18 agustin18 released this 14 Nov 08:01
· 58 commits to stable since this release
41c9b84

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 TypedJsonCoder for Pydantic v2 typed restoration.
  • clear(key=...) deletes only that key; namespace clears require the : boundary; Redis standalone uses SCAN/UNLINK; Redis Cluster namespace clear raises NotImplementedError.
  • 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.0a1

See MIGRATION.md and COMPATIBILITY.md for migration notes and known limitations.