library/Rediska/Transaction.php
protected function _addCommand($name, $args = array())
    {
        $this->_specifiedConnection->setConnection($this->_connection);

        $command = Rediska_Commands::get($this->_rediska, $name, $args);
        $command->initialize();

        if (!$command->isAtomic()) {
            throw new Rediska_Exception("Command '$name' doesn't work properly (not atomic) in transaction on multiple servers");
        }

        $this->_commands[] = $command;

        $this->_specifiedConnection->resetConnection();

        return $this;
    }
protected function _addCommand($name, $args = array())
    {
        $this->_specifiedConnection->setConnection($this->_connection);

        $command = Rediska_Commands::get($this->_rediska, $name, $args);
        $command->initialize();

        if (!$command->isAtomic()) {
            throw new Rediska_Exception("Command '$name' doesn't work properly (not atomic) in transaction on multiple servers");
        }

        $this->_commands[] = $command;

        $this->_specifiedConnection->resetConnection();

        return $this;
    }
Add command to transaction

@param string $name Command name
@param array  $args Arguments
@return Rediska_Transaction