src/Buffered/TransactionalStore.php
public function commit()
    {
        if (count($this->transactions) <= 1) {
            throw new UnbegunTransaction('Attempted to commit without having begun a transaction.');
        }

        /** @var Transaction $transaction */
        $transaction = array_pop($this->transactions);

        return $transaction->commit();
    }
public function commit()
    {
        if (count($this->transactions) <= 1) {
            throw new UnbegunTransaction('Attempted to commit without having begun a transaction.');
        }

        /** @var Transaction $transaction */
        $transaction = array_pop($this->transactions);

        return $transaction->commit();
    }
public function commit ( ) { if ( count ( $ this -> transactions ) <= 1 ) { throw new UnbegunTransaction ( 'Attempted to commit without having begun a transaction.' ) ; } /** @var Transaction $transaction */ $ transaction = array_pop ( $ this -> transactions ) ; return $ transaction -> commit ( ) ; }
Commits all deferred updates to real cache.
If the any write fails, all subsequent writes will be aborted & all keys
that had already been written to will be deleted.

@return bool

@throws UnbegunTransaction
Commits all deferred updates to real cache . If the any write fails all subsequent writes will be aborted & all keys that had already been written to will be deleted .