function ApcuBackendFactory::get

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/ApcuBackendFactory.php \Drupal\Core\Cache\ApcuBackendFactory::get()
  2. 8.9.x core/lib/Drupal/Core/Cache/ApcuBackendFactory.php \Drupal\Core\Cache\ApcuBackendFactory::get()
  3. 11.x core/lib/Drupal/Core/Cache/ApcuBackendFactory.php \Drupal\Core\Cache\ApcuBackendFactory::get()

Gets ApcuBackend for the specified cache bin.

Parameters

$bin: The cache bin for which the object is created.

Return value

\Drupal\Core\Cache\ApcuBackend The cache backend object for the specified cache bin.

File

core/lib/Drupal/Core/Cache/ApcuBackendFactory.php, line 62

Class

ApcuBackendFactory

Namespace

Drupal\Core\Cache

Code

public function get($bin) {
    return new $this->backendClass($bin, $this->sitePrefix, $this->checksumProvider, $this->time);
}

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