本文整理汇总了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);
}