Correctly determine the redis instance