src/M6Web/Component/Redis/Manager.php
public function getRedisFromServerConfig($idServer)
    {
        // redis already marked dead
        if (array_key_exists($idServer, $this->deadRedis)) {
            return false;
        }
        // redis already marked alive
        if (array_key_exists($idServer, $this->aliveRedis)) {
            if (!$this->aliveRedis[$idServer]->isConnected()) {
                $this->deadRedis[$idServer] = 1;

                return false;
            }

            return $this->aliveRedis[$idServer];
        }

        $redis = $this->getNewRedis();
        if ($this->connectServer($redis, $this->getServerConfig($idServer))) {
            $this->aliveRedis[$idServer] = $redis;

            return $redis;
        } else {
            $this->deadRedis[$idServer] = 1;

            return false;
        }
    }
public function getRedisFromServerConfig($idServer)
    {
        // redis already marked dead
        if (array_key_exists($idServer, $this->deadRedis)) {
            return false;
        }
        // redis already marked alive
        if (array_key_exists($idServer, $this->aliveRedis)) {
            if (!$this->aliveRedis[$idServer]->isConnected()) {
                $this->deadRedis[$idServer] = 1;

                return false;
            }

            return $this->aliveRedis[$idServer];
        }

        $redis = $this->getNewRedis();
        if ($this->connectServer($redis, $this->getServerConfig($idServer))) {
            $this->aliveRedis[$idServer] = $redis;

            return $redis;
        } else {
            $this->deadRedis[$idServer] = 1;

            return false;
        }
    }
buid a redis server with a config
@param string $idServer server id in the configuration

@return object|false