public function CacheBackendWrapper::setMultiple in Devel 8.3
Same name and namespace in other branches
- 8 webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::setMultiple()
- 8.2 webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::setMultiple()
- 4.x webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::setMultiple()
Store multiple items in the persistent cache.
Parameters
array $items: An array of cache items, keyed by cid. In the form:
$items = array(
$cid => array(
// Required, will be automatically serialized if not a string.
'data' => $data,
// Optional, defaults to CacheBackendInterface::CACHE_PERMANENT.
'expire' => CacheBackendInterface::CACHE_PERMANENT,
// (optional) The cache tags for this item, see CacheBackendInterface::set().
'tags' => array(),
),
);
Overrides CacheBackendInterface::setMultiple
File
- webprofiler/
src/ Cache/ CacheBackendWrapper.php, line 107
Class
- CacheBackendWrapper
- Wraps an existing cache backend to track calls to the cache backend.
Namespace
Drupal\webprofiler\CacheCode
public function setMultiple(array $items) {
return $this->cacheBackend
->setMultiple($items);
}