Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function touch($key, $expire)
 {
     if ($expire - time() < 0) {
         return $this->delete($key);
     }
     try {
         $result = $this->client->getAndTouch($key, $expire);
     } catch (\CouchbaseException $e) {
         return false;
     }
     return !$result->error;
 }