a simple redis failover in ruby