Repository navigation
fastapi-cache-stable 0.3.0b1
Pre-release0.3.0b1 - 2026-11-16
Bugfixes
-
FastAPICache.init()now raisesRuntimeErrorwhen called a second time instead of
silently keeping the first configuration. CallFastAPICache.reset()before
re-initializing, or pass the keyword-onlyforce=Trueto replace the current configuration
explicitly. Applications that callinit()from a lifespan handler must passforce=True
or reset first, because the handler runs on every startup. The bundled examples do this.The decorator now resolves the coder and expiry per request instead of overwriting the
values captured at decoration time, so a re-initialization also applies to endpoints that
were already called. Reusing the same backend and namespace across coders can leave
entries in an incompatible format; flush or rotate the namespace when the coder changes. #18
Improved Documentation
-
Add GitHub issue forms for bug reports and feature requests, with a template chooser that
links to the support policy, migration guide, compatibility contract and private
vulnerability reporting. Blank issues are disabled so reports arrive with the information
needed to triage them.Enable GitHub Issues for the repository and point every bug-reporting reference at a real
channel instead of "when issues are enabled". Security reports continue to use private
vulnerability reporting, never a public issue. The security response targets are now stated
as best-effort targets rather than contractual guarantees. #20
Misc
-
Remove the unused
tox.iniand thetoxdevelopment dependency. CI already runs the
supported matrix through GitHub Actions, andCONTRIBUTING.mddocumentspip,pytest,
Ruff and pre-commit instead of tox, so the tox file only declared a stale Python 3.7-3.11
matrix that no longer matched reality.Add unit tests for the Memcached and DynamoDB backends using fake clients, and run them in a
newoptional-backendsCI job. They cover key encoding, get/set, TTL handling and the
unimplementedclear. Both backends remain Experimental: there are no integration tests
against a real service, andMemcachedBackend.get_with_ttl()still returns a fixed3600
instead of the real remaining time. #19