class RedisClient::URLConfig

def host

def host
  return if uri.host.nil? || uri.host.empty?
  uri.host.sub(/\A\[(.*)\]\z/, '\1')
end