/** * {@inheritdoc} */ public function deleteMultiple(array $cids) { foreach ($cids as &$cid) { $cid = $this->decorate($cid); } return $this->decorated->deleteMultiple($cids); }
/** * Implements Drupal\Core\Config\StorageInterface::deleteAll(). */ public function deleteAll($prefix = '') { // If the cache was the first to be deleted, another process might start // rebuilding the cache before the storage is renamed. $names = $this->storage->listAll($prefix); if ($this->storage->deleteAll($prefix)) { $this->cache->deleteMultiple($this->getCacheKeys($names)); return TRUE; } return FALSE; }
/** * {@inheritdoc} */ public function resetCache(array $ids = NULL) { if ($ids) { $cids = array(); foreach ($ids as $id) { unset($this->entities[$id]); $cids[] = $this->buildCacheId($id); } if ($this->entityType->isPersistentlyCacheable()) { $this->cacheBackend->deleteMultiple($cids); } } else { $this->entities = array(); if ($this->entityType->isPersistentlyCacheable()) { Cache::invalidateTags(array($this->entityTypeId . '_values')); } } }
/** * {@inheritdoc} */ public function deleteMultiple(array $cids) { $this->markAsOutdated(); $this->consistentBackend->deleteMultiple($cids); }
/** * {@inheritdoc} */ public function deleteMultiple(array $cids) { return $this->cacheBackend->deleteMultiple($cids); }