src/Transaction/MultiExec.php
public function discard()
    {
        if ($this->state->isInitialized()) {
            $this->call($this->state->isCAS() ? 'UNWATCH' : 'DISCARD');

            $this->reset();
            $this->state->flag(MultiExecState::DISCARDED);
        }

        return $this;
    }
public function discard()
    {
        if ($this->state->isInitialized()) {
            $this->call($this->state->isCAS() ? 'UNWATCH' : 'DISCARD');

            $this->reset();
            $this->state->flag(MultiExecState::DISCARDED);
        }

        return $this;
    }
public function discard ( ) { if ( $ this -> state -> isInitialized ( ) ) { $ this -> call ( $ this -> state -> isCAS ( ) ? 'UNWATCH' : 'DISCARD' ) ; $ this -> reset ( ) ; $ this -> state -> flag ( MultiExecState :: DISCARDED ) ; } return $ this ; }
Resets the transaction by UNWATCH-ing the keys that are being WATCHed and
DISCARD-ing pending commands that have been already sent to the server.

@return MultiExec
Resets the transaction by UNWATCH - ing the keys that are being WATCHed and DISCARD - ing pending commands that have been already sent to the server .