Пример #1
0
 protected function touchInternal($key, $expire = 0)
 {
     try {
         $this->storage->touch($key, $expire);
         return true;
     } catch (\CouchbaseException $e) {
         return false;
     }
 }
Пример #2
0
 /**
  * Give (if possible) an extra lifetime to the given cache id
  *
  * @param string $id cache id
  * @param int $extraLifetime
  * @return boolean true if ok
  */
 public function touch($id, $extraLifetime)
 {
     $this->cacheBucket->touch($id, $this->convertLifetimeToExpiry($extraLifetime));
 }