Handle redis connections with intelligence