963 B
963 B
Documenter — F-027 Caching layer with explicit contracts
Summary
Cache module exposes a read-through wrapper, registered contracts and metrics. PostgreSQL remains the source of truth; the cache is best-effort and degrades to the loader when the adapter is unavailable.
Public API notes
| Route | Access | Result |
|---|---|---|
| GET /cache/contracts | admin | Returns registered contracts (key, TTL, source, invalidation) |
| GET /cache/metrics | authenticated | Returns hits/misses/invalidations/hitRatio |
Contracts (v1)
product:{slug}300s invalidated by ProductUpdatedcategory:{slug}300s invalidated by CategoryUpdatednav:tree600s invalidated by NavigationInvalidatedsearch:popular60s invalidated by SearchInvalidated
Evidence
work/artifacts/F-027/architect.mdwork/artifacts/F-027/implementer.mdwork/artifacts/F-027/reviewer.jsonwork/artifacts/F-027/security.jsonwork/artifacts/F-027/qa.json