You are here

public function CacheRawBackendInterface::counterSet in Supercache 8

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

Set the value for a counter storage item.

On some backends you can actually simply call set() but others require to provide, for example, an ASCII representation of the value.

Parameters

string $cid: The cache id.

int $value: The value.

3 methods override CacheRawBackendInterface::counterSet()
ApcuRawBackend::counterSet in src/Cache/ApcuRawBackend.php
Set the value for a counter storage item.
ChainedFastRawBackend::counterSet in src/Cache/ChainedFastRawBackend.php
Set the value for a counter storage item.
DatabaseRawBackend::counterSet in src/Cache/DatabaseRawBackend.php
Set the value for a counter storage item.

File

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

Class

CacheRawBackendInterface
Defines an interface for cache implementations.

Namespace

Drupal\supercache\Cache

Code

public function counterSet($cid, $value);