redis connection control improved