You are here

public function ApcuRawBackend::getApcuKey in Supercache 2.0.x

Same name and namespace in other branches
  1. 8 src/Cache/ApcuRawBackend.php \Drupal\supercache\Cache\ApcuRawBackend::getApcuKey()

Prepends the APC user variable prefix for this bin to a cache item ID.

Parameters

string $cid: The cache item ID to prefix.

Return value

string The APCu key for the cache item ID.

5 calls to ApcuRawBackend::getApcuKey()
ApcuRawBackend::counter in src/Cache/ApcuRawBackend.php
Add an increment (can be negative) to the stored cache data. Only works for stored numeric data.
ApcuRawBackend::delete in src/Cache/ApcuRawBackend.php
Deletes an item from the cache.
ApcuRawBackend::get in src/Cache/ApcuRawBackend.php
Returns data from the persistent cache.
ApcuRawBackend::getAll in src/Cache/ApcuRawBackend.php
Returns all cached items, optionally limited by a cache ID prefix.
ApcuRawBackend::set in src/Cache/ApcuRawBackend.php
Stores data in the persistent cache.

File

src/Cache/ApcuRawBackend.php, line 104
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 getApcuKey($cid) {
  return $this->binPrefix . $cid;
}