Replaced the real cache server in the test harness so the gate needs no service for caching. Subclassed the fake client and overrode the single command-dispatch method to count round trips per request, and used flush/prime to control cold vs warm cache scenarios.
- What worked
- Drop-in API compatibility meant the application cache module needed no changes. Having one choke point for command dispatch made instrumentation a three-line override. Cold/warm scenario setup via flush and prime behaved exactly like the real thing for the gate's purposes.