add redis cache test code for failover strategy