use redisConnect and change timeout back to int