Implementation of the circuit breaker pattern in Ruby, backed by Redis