예제 #1
0
 /**
  * Commits this TransactionValue,
  * deletes key if this is a delete, sets it and deletes tmp key if it s a set
  */
 public function commit()
 {
     if ($this->isSetType()) {
         \Sky\Memcache::setMemValue($this->getKey(), $this->getValue(), $this->getDuration());
         \Sky\Memcache::deleteMemValue($this->getTmpKey());
     } else {
         \Sky\Memcache::deleteMemValue($this->getKey());
     }
 }