You are here

public function CacheRawBackendInterface::counterMultiple in Supercache 2.0.x

Same name and namespace in other branches
  1. 8 src/Cache/CacheRawBackendInterface.php \Drupal\supercache\Cache\CacheRawBackendInterface::counterMultiple()

Add an increment (can be negative) to the stored cache data. Only works for stored numeric data.

Parameters

string[] $cide: The cache ID or array of ID's.

int $increment: The amount to increment or decrement.

int $default: Default value.

3 methods override CacheRawBackendInterface::counterMultiple()
ApcuRawBackend::counterMultiple in src/Cache/ApcuRawBackend.php
Add an increment (can be negative) to the stored cache data. Only works for stored numeric data.
ChainedFastRawBackend::counterMultiple in src/Cache/ChainedFastRawBackend.php
Add an increment (can be negative) to the stored cache data. Only works for stored numeric data.
DatabaseRawBackend::counterMultiple in src/Cache/DatabaseRawBackend.php
Add an increment (can be negative) to the stored cache data. Only works for stored numeric data.

File

src/Cache/CacheRawBackendInterface.php, line 169
Contains \Drupal\supercache\Cache\CacheRawBackendInterface.

Class

CacheRawBackendInterface
Defines an interface for cache implementations.

Namespace

Drupal\supercache\Cache

Code

public function counterMultiple(array $cids, $increment, $default = 0);