ApcuFileCacheBackend

APCu backend for the file cache. Hierarchy class \Drupal\Component\FileCache\ApcuFileCacheBackend implements FileCacheBackendInterface File core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php, line 8 Namespace Drupal\Component\FileCache Members Name Modifiers Type Description ApcuFileCacheBackend::delete public function Deletes data from a cache backend. Overrides FileCacheBackendInterface::delete ApcuFileCacheBackend::fetch public function Fetches data

ApcuBackendFactory::__construct

public ApcuBackendFactory::__construct($root, $site_path, CacheTagsChecksumInterface $checksum_provider) Constructs an ApcuBackendFactory object. Parameters string $root: The app root. string $site_path: The site path. \Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider: The cache tags checksum provider. File core/lib/Drupal/Core/Cache/ApcuBackendFactory.php, line 40 Class ApcuBackendFactory Namespace Drupal\Core\Cache Code public function __construct($root, $site_path,

ApcuBackendFactory::get

public ApcuBackendFactory::get($bin) 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. Overrides CacheFactoryInterface::get File core/lib/Drupal/Core/Cache/ApcuBackendFactory.php, line 60 Class ApcuBackendFactory Namespace Drupal\Core\Cache Code public function get($bin) { return new $this->backendClass($bin, $this->sit

ApcuBackendFactory::$sitePrefix

The site prefix string. Type: string File core/lib/Drupal/Core/Cache/ApcuBackendFactory.php, line 14 Class ApcuBackendFactory Namespace Drupal\Core\Cache Code protected $sitePrefix;

ApcuBackendFactory::$checksumProvider

The cache tags checksum provider. Type: \Drupal\Core\Cache\CacheTagsChecksumInterface File core/lib/Drupal/Core/Cache/ApcuBackendFactory.php, line 21 Class ApcuBackendFactory Namespace Drupal\Core\Cache Code protected $checksumProvider;

ApcuBackendFactory::$backendClass

The APCU backend class to use. Type: string File core/lib/Drupal/Core/Cache/ApcuBackendFactory.php, line 28 Class ApcuBackendFactory Namespace Drupal\Core\Cache Code protected $backendClass;

ApcuBackendFactory

Hierarchy class \Drupal\Core\Cache\ApcuBackendFactory implements CacheFactoryInterface File core/lib/Drupal/Core/Cache/ApcuBackendFactory.php, line 7 Namespace Drupal\Core\Cache Members Name Modifiers Type Description ApcuBackendFactory::$backendClass protected property The APCU backend class to use. ApcuBackendFactory::$checksumProvider protected property The cache tags checksum provider. ApcuBackendFactory::$sitePrefix protected property The site prefix

ApcuBackend::__construct

public ApcuBackend::__construct($bin, $site_prefix, CacheTagsChecksumInterface $checksum_provider) Constructs a new ApcuBackend instance. Parameters string $bin: The name of the cache bin. string $site_prefix: The prefix to use for all keys in the storage that belong to this site. \Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider: The cache tags checksum provider. File core/lib/Drupal/Core/Cache/ApcuBackend.php, line 50 Class ApcuBackend Stores cache items in the Alternativ

ApcuBackend::setMultiple

public ApcuBackend::setMultiple(array $items = array()) Store multiple items in the persistent cache. Parameters array $items: An array of cache items, keyed by cid. In the form: $items = array( $cid => array( // Required, will be automatically serialized if not a string. 'data' => $data, // Optional, defaults to CacheBackendInterface::CACHE_PERMANENT. 'expire' => CacheBackendInterface::CACHE_PERMANENT, // (optional) The cache tags for this item, se

ApcuBackend::set

public ApcuBackend::set($cid, $data, $expire = CacheBackendInterface::CACHE_PERMANENT, array $tags = array()) Stores data in the persistent cache. Core cache implementations set the created time on cache item with microtime(TRUE) rather than REQUEST_TIME_FLOAT, because the created time of cache items should match when they are created, not when the request started. Apart from being more accurate, this increases the chance an item will legitimately be considered valid. Parameters string $cid: T