only initialize the redis connection if its used