library/Rediska/Transaction.php
public function execute()
    {
        $results = array();

        $this->_rediska->getProfiler()->start($this);

        $multi = new Rediska_Connection_Exec($this->_connection, 'MULTI');
        $multi->execute();

        foreach($this->_commands as $command) {
            $command->execute();
        }

        $exec = new Rediska_Connection_Exec($this->_connection, 'EXEC');
        $responses = $exec->execute();

        $this->_rediska->getProfiler()->stop();

        if (!$responses) {
            throw new Rediska_Transaction_AbortedException('Transaction has been aborted by server');
        }

        foreach($this->_commands as $i => $command) {
            $results[] = $command->parseResponses(array($responses[$i]));
        }

        $this->_reset();

        return $results;
    }
public function execute()
    {
        $results = array();

        $this->_rediska->getProfiler()->start($this);

        $multi = new Rediska_Connection_Exec($this->_connection, 'MULTI');
        $multi->execute();

        foreach($this->_commands as $command) {
            $command->execute();
        }

        $exec = new Rediska_Connection_Exec($this->_connection, 'EXEC');
        $responses = $exec->execute();

        $this->_rediska->getProfiler()->stop();

        if (!$responses) {
            throw new Rediska_Transaction_AbortedException('Transaction has been aborted by server');
        }

        foreach($this->_commands as $i => $command) {
            $results[] = $command->parseResponses(array($responses[$i]));
        }

        $this->_reset();

        return $results;
    }
Execute transaction

@return array