You are here

public function ApcuRawBackend::counterSet in Supercache 8

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

Overrides CacheRawBackendInterface::counterSet

1 call to ApcuRawBackend::counterSet()
ApcuRawBackend::counterSetMultiple in src/Cache/ApcuRawBackend.php
Set the value of counter variables in batch.

File

src/Cache/ApcuRawBackend.php, line 262
Contains \Drupal\supercache\Cache\ApcuRawBackend.

Class

ApcuRawBackend
Stores cache items in the Alternative PHP Cache User Cache (APCu).

Namespace

Drupal\supercache\Cache

Code

public function counterSet($cid, $value) {
  $this
    ->set($cid, $value);
}