Added some redis connection code