Wise interview question

Implement a circuit breaker with response caching for an existing request handler.