function ApcuBackend::getApcuKey

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Cache/ApcuBackend.php \Drupal\Core\Cache\ApcuBackend::getApcuKey()

Prepends the APCu 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.

File

core/lib/Drupal/Core/Cache/ApcuBackend.php, line 68

Class

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

Namespace

Drupal\Core\Cache

Code

public function getApcuKey($cid) {
  return $this->binPrefix . $cid;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.