protected function touchInternal($key, $expire = 0) { try { $this->storage->touch($key, $expire); return true; } catch (\CouchbaseException $e) { return false; } }
/** * 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)); }