You are here

public function ApcuRawBackend::counterSetMultiple in Supercache 8

Same name and namespace in other branches
  1. 2.0.x 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\Cache

Code

public function counterSetMultiple(array $items) {
  foreach ($items as $cid => $item) {
    $this
      ->counterSet($cid, (int) $item);
  }
}