You are here

public function CacheRawBackendInterface::counterGet in Supercache 2.0.x

Same name and namespace in other branches
  1. 8 src/Cache/CacheRawBackendInterface.php \Drupal\supercache\Cache\CacheRawBackendInterface::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.

3 methods override CacheRawBackendInterface::counterGet()
ApcuRawBackend::counterGet in src/Cache/ApcuRawBackend.php
Get the value of a counter variable.
ChainedFastRawBackend::counterGet in src/Cache/ChainedFastRawBackend.php
Get the value of a counter variable.
DatabaseRawBackend::counterGet in src/Cache/DatabaseRawBackend.php
Get the value of a counter variable.

File

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

Class

CacheRawBackendInterface
Defines an interface for cache implementations.

Namespace

Drupal\supercache\Cache

Code

public function counterGet($cid);