本文整理匯總了PHP中Drupal\Core\Cache\CacheBackendInterface::deleteMultiple方法的典型用法代碼示例。如果您正苦於以下問題:PHP CacheBackendInterface::deleteMultiple方法的具體用法?PHP CacheBackendInterface::deleteMultiple怎麽用?PHP CacheBackendInterface::deleteMultiple使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Drupal\Core\Cache\CacheBackendInterface
的用法示例。
在下文中一共展示了CacheBackendInterface::deleteMultiple方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: deleteMultiple
/**
* {@inheritdoc}
*/
public function deleteMultiple(array $cids)
{
foreach ($cids as &$cid) {
$cid = $this->decorate($cid);
}
return $this->decorated->deleteMultiple($cids);
}
示例2: deleteAll
/**
* 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;
}
示例3: resetCache
/**
* {@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'));
}
}
}
示例4: deleteMultiple
/**
* {@inheritdoc}
*/
public function deleteMultiple(array $cids)
{
$this->markAsOutdated();
$this->consistentBackend->deleteMultiple($cids);
}
示例5: deleteMultiple
/**
* {@inheritdoc}
*/
public function deleteMultiple(array $cids)
{
return $this->cacheBackend->deleteMultiple($cids);
}