commit() public method

When the commit fails, no changes in this transaction will be applied (and those that had already been applied will be undone). False will be returned in that case.
public commit ( ) : boolean
return boolean
Exemplo n.º 1
0
 /**
  * Commits all deferred updates to real cache.
  * that had already been written to will be deleted.
  *
  * @return bool
  */
 public function commit()
 {
     $this->clear();
     return $this->defer->commit();
 }