src/mako/redis/Redis.php
protected function createClusterClient(string $server): Redis
	{
		[$server, $port] = explode(':', $server, 2);

		$isPersistent = $this->connection->isPersistent();

		$timeout = $this->connection->getTimeout();

		$name = $this->connection->getName();

		$connection = new Connection($server, $port, $isPersistent, $timeout, $name);

		return new static($connection, ['password' => $this->password, 'database' => $this->database]);
	}
protected function createClusterClient(string $server): Redis
	{
		[$server, $port] = explode(':', $server, 2);

		$isPersistent = $this->connection->isPersistent();

		$timeout = $this->connection->getTimeout();

		$name = $this->connection->getName();

		$connection = new Connection($server, $port, $isPersistent, $timeout, $name);

		return new static($connection, ['password' => $this->password, 'database' => $this->database]);
	}
protected function createClusterClient ( string $ server ) : Redis { [ $ server , $ port ] = explode ( ':' , $ server , 2 ) ; $ isPersistent = $ this -> connection -> isPersistent ( ) ; $ timeout = $ this -> connection -> getTimeout ( ) ; $ name = $ this -> connection -> getName ( ) ; $ connection = new Connection ( $ server , $ port , $ isPersistent , $ timeout , $ name ) ; return new static ( $ connection , [ 'password' => $ this -> password , 'database' => $ this -> database ] ) ; }
Creates a cluster client.

@param  string            $server Server string
@return \mako\redis\Redis
Creates a cluster client .