Decrease redis connect timeout, optimize regex patterns, add failover handler