type Config struct {
URI string `json:"uri"`
DB int `json:"db"`
MaxIdle int `json:"max_idle"`
MaxActive int `json:"max_active"`
IdleTimeout int `json:"idle_timeout"`
ConnectTimeout int `json:"connection_timeout"`
}
Conn returns a new redis connection. Caller must close the connection.
Before returning the connection is tested and if it's not alive - an error is returned.