Configured the redis client based on deployment