Moved fault_tolerant? call into method and evaluate the middleware_option fallback_to_cache.
Don't assume that we have middleware_options.
For Eureka-client we can assume them to be present but in other contexts they may not be around.
Monkey-Patch Rack::MockRequest to pass in the middleware options (as Euresource/Eureka client does).
Added tests to test the per-request fault-tolerance option
Added comment for the fault_tolerant_condition
Addressed comments
Added more explicit logging of failover
Added retry-logic: Retry <retry> number of times, then (if fault-tolerant) fail-over to stale date or just fail.
Bumped version
Added retry logic to miss case (no data in cache)
Addressed comment
Added tests for retry cases
Addressed comment
Addressed comment
Addressed comment
Addressed comment
Addressed comment
Addressed comment
Fixed wrong record
Added test for no-retry fail case