Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ApcuBackend.php

function 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.

4 calls to ApcuBackend::getApcuKey()
ApcuBackend::delete in core/lib/Drupal/Core/Cache/ApcuBackend.php
Deletes an item from the cache.
ApcuBackend::get in core/lib/Drupal/Core/Cache/ApcuBackend.php
Returns data from the persistent cache.
ApcuBackend::getAll in core/lib/Drupal/Core/Cache/ApcuBackend.php
Returns all cached items, optionally limited by a cache ID prefix.
ApcuBackend::set in core/lib/Drupal/Core/Cache/ApcuBackend.php
Stores data in the persistent cache.

File

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

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal