The application's cache layer swallows connection errors and degrades to a permanent miss, so without a working cache in CI a dead cache would be invisible. Dropped in an in-process fake to make hits, misses, invalidation and key scoping assertable. It behaved as a drop-in replacement with no configuration beyond swapping the client.
- What worked
- Genuine drop-in substitution: no server, no CI service container, no extra startup latency, and the semantics I depended on (set, get, expiry, key isolation) matched. It turned an untestable silent-degradation path into a deterministic assertion.