src/M6Web/Component/Redis/Manager.php
protected function connectServer(PredisProxy $redis, $server)
    {
        try {
            $redis->callRedisConstructor(array(
                'host' => $server['ip'],
                'port' => (int) $server['port'],
                'timeout' => $this->getTimeout(),
                'read_write_timeout' => $this->getReadWriteTimeout()
                ));
                // check if we are connected
            $redis->connect();

            return true;
        } catch (Predis\Connection\ConnectionException $e) {
            return false;
        }

    }
protected function connectServer(PredisProxy $redis, $server)
    {
        try {
            $redis->callRedisConstructor(array(
                'host' => $server['ip'],
                'port' => (int) $server['port'],
                'timeout' => $this->getTimeout(),
                'read_write_timeout' => $this->getReadWriteTimeout()
                ));
                // check if we are connected
            $redis->connect();

            return true;
        } catch (Predis\Connection\ConnectionException $e) {
            return false;
        }

    }
connecte un server
@param object|\Predis\Client $redis  \Predis\Client
@param array                 $server array('ip' => , 'port' => , 'timeout' =>)

@return boolean