public function ChainedFastRawBackend::counterGet in Supercache 8
Same name and namespace in other branches
- 2.0.x src/Cache/ChainedFastRawBackend.php \Drupal\supercache\Cache\ChainedFastRawBackend::counterGet()
Get the value of a counter variable.
Some backends do not store counters as numeric data. So if you call get($cid) you might obtain unexpected results.
Parameters
string $cid: The cache id.
Overrides CacheRawBackendInterface::counterGet
File
- src/
Cache/ ChainedFastRawBackend.php, line 287 - Contains \Drupal\supercache\Cache\ChainedFastRawBackend.
Class
- ChainedFastRawBackend
- Defines a backend with a fast and a consistent backend chain.
Namespace
Drupal\supercache\CacheCode
public function counterGet($cid) {
$result = $this->counterGetMultiple[$cid];
return reset($result);
}