public function CacheRawBackendInterface::counter in Supercache 8
Same name and namespace in other branches
- 2.0.x src/Cache/CacheRawBackendInterface.php \Drupal\supercache\Cache\CacheRawBackendInterface::counter()
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::counter()
- ApcuRawBackend::counter in src/
Cache/ ApcuRawBackend.php - Add an increment (can be negative) to the stored cache data. Only works for stored numeric data.
- ChainedFastRawBackend::counter in src/
Cache/ ChainedFastRawBackend.php - Add an increment (can be negative) to the stored cache data. Only works for stored numeric data.
- DatabaseRawBackend::counter 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 156 - Contains \Drupal\supercache\Cache\CacheRawBackendInterface.
Class
- CacheRawBackendInterface
- Defines an interface for cache implementations.
Namespace
Drupal\supercache\CacheCode
public function counter($cid, $increment, $default = 0);