src/Connection/Aggregate/PredisCluster.php
public function executeCommandOnNodes(CommandInterface $command)
    {
        $responses = array();

        foreach ($this->pool as $connection) {
            $responses[] = $connection->executeCommand($command);
        }

        return $responses;
    }
public function executeCommandOnNodes(CommandInterface $command)
    {
        $responses = array();

        foreach ($this->pool as $connection) {
            $responses[] = $connection->executeCommand($command);
        }

        return $responses;
    }
public function executeCommandOnNodes ( CommandInterface $ command ) { $ responses = array ( ) ; foreach ( $ this -> pool as $ connection ) { $ responses [ ] = $ connection -> executeCommand ( $ command ) ; } return $ responses ; }
Executes the specified Redis command on all the nodes of a cluster.

@param CommandInterface $command A Redis command.

@return array
Executes the specified Redis command on all the nodes of a cluster .