Ejemplo n.º 1
0
 /**
  * This clears out any locks that are present if this Item is prematurely destructed.
  */
 public function __destruct()
 {
     if (isset($this->stampedeRunning) && $this->stampedeRunning == true) {
         $spkey = $this->key;
         $spkey[0] = 'sp';
         $this->driver->clear($spkey);
     }
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function clear()
 {
     return $this->cache->clear();
 }