src/Redis/Sentinel.php
public function getMasterClient($name)
    {
        if (!isset($this->master[$name])) {
            $this->master[$name] = $this->createMasterClient($name);
        }

        return $this->master[$name];
    }
public function getMasterClient($name)
    {
        if (!isset($this->master[$name])) {
            $this->master[$name] = $this->createMasterClient($name);
        }

        return $this->master[$name];
    }
public function getMasterClient ( $ name ) { if ( ! isset ( $ this -> master [ $ name ] ) ) { $ this -> master [ $ name ] = $ this -> createMasterClient ( $ name ) ; } return $ this -> master [ $ name ] ; }
If a Credis_Client object exists for a master, return it. Otherwise create one and return it

@param string $name

@return Client
@throws RedisException
If a Credis_Client object exists for a master return it . Otherwise create one and return it