if redis isn't enabled then don't try to connect