Пример #1
0
 /**
  * @inheritdoc
  */
 public function remove($key)
 {
     $res = $this->cache->remove($key);
     if ($res === true) {
         unset($this->memory[$key]);
     }
     return $res;
 }
Пример #2
0
 /**
  * Invalidates all cache keys registered to the given list key.
  *
  * @param string $key
  */
 public function invalidate($key)
 {
     // delete the item
     $this->getOrmCache()->delete($key);
     // this is the registration list for this key
     $list = sprintf('registered:%s', $key);
     // now delete all queries which results contain this item
     if (!empty($keys = $this->cache->getList($list))) {
         foreach ($keys as $key) {
             $this->getOrmCache()->delete($key);
         }
     }
     // finally remove the list which held the above queries
     $this->cache->remove($list);
 }
 /**
  * {@inheritdoc}
  */
 public function destroy($sessionId)
 {
     return $this->cache->remove($this->prefix . $sessionId);
 }
Пример #4
0
 /**
  * @inheritdoc
  */
 public function delete($id, array $options = null)
 {
     return $this->cache->remove($id);
 }
Пример #5
0
 /**
  * @inheritdoc
  */
 protected function doDelete($id)
 {
     return $this->cache->remove($id);
 }