simplify connect code for redis
Merge pull request #3659 from dogmatic69/patch-3

simplify connect code for redis