added timeout for redis connectin
Merge pull request #867 from gauravgopi123/redis_timeout

added timeout for redis connectin