src/M6Web/Component/Redis/DB.php
public function getRedisObject($serverRank = 0)
    {
        $serverConfig = $this->getServerConfig();

        $keys = array_keys($serverConfig);
        if (isset($keys[$serverRank])) {
            return $this->getRedisFromServerConfig($keys[$serverRank]);
        } else {
            throw new Exception("No server found at rank ".$serverRank);
        }
    }
public function getRedisObject($serverRank = 0)
    {
        $serverConfig = $this->getServerConfig();

        $keys = array_keys($serverConfig);
        if (isset($keys[$serverRank])) {
            return $this->getRedisFromServerConfig($keys[$serverRank]);
        } else {
            throw new Exception("No server found at rank ".$serverRank);
        }
    }
return a predis object
@param int $serverRank

@return false|object
@throws Exception