Exemple #1
0
 /**
  * Set an item only if token matches
  *
  * It uses the token received from getItem() to check if the item has
  * changed before overwriting it.
  *
  * @param  mixed  $token
  * @param  string $key
  * @param  mixed  $value
  * @return bool
  * @throws Exception\ExceptionInterface
  * @see    getItem()
  * @see    setItem()
  */
 public function checkAndSetItem($token, $key, $value)
 {
     $options = $this->getOptions();
     if ($options->getWritable() && $options->getClearStatCache()) {
         clearstatcache();
     }
     return parent::checkAndSetItem($token, $key, $value);
 }