Example #1
0
 /**
  * Remove an item.
  *
  * @param string $cacheId
  * @param bool   $withVersion
  *
  * @return bool
  */
 public function removeItem($cacheId, $withVersion = true)
 {
     if ($withVersion) {
         $cacheId .= '.' . $this->getVersion();
     }
     return $this->cache->removeItem($cacheId);
 }
Example #2
0
 /**
  * Removes the object identified by $objectId from the persistence provider
  *
  * @param string $objectId
  *
  * @return bool
  */
 public function remove($objectId)
 {
     return $this->adapter->removeItem($objectId);
 }