Add utility function to connect to Redis