public function ApcuRawBackend::counterSetMultiple in Supercache 2.0.x
Same name and namespace in other branches
- 8 src/Cache/ApcuRawBackend.php \Drupal\supercache\Cache\ApcuRawBackend::counterSetMultiple()
Set the value of counter variables in batch.
Parameters
array $items: An array of counter values, keyed by cid. In the form:
$items = array(
$cid => $value,
);
Overrides CacheRawBackendInterface::counterSetMultiple
File
- src/
Cache/ ApcuRawBackend.php, line 269 - Contains \Drupal\supercache\Cache\ApcuRawBackend.
Class
- ApcuRawBackend
- Stores cache items in the Alternative PHP Cache User Cache (APCu).
Namespace
Drupal\supercache\CacheCode
public function counterSetMultiple(array $items) {
foreach ($items as $cid => $item) {
$this
->counterSet($cid, (int) $item);
}
}