public function createMasterClient($name)
    {
        $master = $this->getMasterAddressByName($name);
        if (!isset($master[0], $master[1])) {
            throw new RedisException('Master not found');
        }

        return Factory::client([
            'host' => $master[0],
            'port' => $master[1],
            'timeout' => $this->timeout,
            'persistent' => $this->persistent,
            'database' => $this->database,
            'password' => $this->getPassword(),
        ]);
    }