class Apcu4Backend in Drupal 8
Stores cache items in the Alternative PHP Cache User Cache (APCu).
This class is used with APCu versions >= 4.0.0 and < 5.0.0.
Hierarchy
- class \Drupal\Core\Cache\ApcuBackend implements CacheBackendInterface
- class \Drupal\Core\Cache\Apcu4Backend
Expanded class hierarchy of Apcu4Backend
Deprecated
in drupal:8.8.0 and is removed from from drupal:9.0.0. Use \Drupal\Core\Cache\ApcuBackend instead.
See also
https://www.drupal.org/node/3063510
File
- core/
lib/ Drupal/ Core/ Cache/ Apcu4Backend.php, line 17
Namespace
Drupal\Core\CacheView source
class Apcu4Backend extends ApcuBackend {
/**
* {@inheritdoc}
*
* @return \APCIterator
*/
protected function getIterator($search = NULL, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE) {
return new \APCIterator('user', $search, $format, $chunk_size, $list);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Apcu4Backend:: |
protected | function |
Overrides ApcuBackend:: |
|
ApcuBackend:: |
protected | property | The name of the cache bin to use. | |
ApcuBackend:: |
protected | property | Prefix for all keys in this cache bin. | |
ApcuBackend:: |
protected | property | The cache tags checksum provider. | |
ApcuBackend:: |
protected | property | Prefix for all keys in the storage that belong to this site. | |
ApcuBackend:: |
public | function |
Deletes an item from the cache. Overrides CacheBackendInterface:: |
|
ApcuBackend:: |
public | function |
Deletes all cache items in a bin. Overrides CacheBackendInterface:: |
|
ApcuBackend:: |
public | function |
Deletes multiple items from the cache. Overrides CacheBackendInterface:: |
|
ApcuBackend:: |
public | function |
Performs garbage collection on a cache bin. Overrides CacheBackendInterface:: |
|
ApcuBackend:: |
public | function |
Returns data from the persistent cache. Overrides CacheBackendInterface:: |
|
ApcuBackend:: |
protected | function | Returns all cached items, optionally limited by a cache ID prefix. | |
ApcuBackend:: |
public | function | Prepends the APCu user variable prefix for this bin to a cache item ID. | |
ApcuBackend:: |
public | function |
Returns data from the persistent cache when given an array of cache IDs. Overrides CacheBackendInterface:: |
|
ApcuBackend:: |
public | function |
Marks a cache item as invalid. Overrides CacheBackendInterface:: |
|
ApcuBackend:: |
public | function |
Marks all cache items as invalid. Overrides CacheBackendInterface:: |
|
ApcuBackend:: |
public | function |
Marks cache items as invalid. Overrides CacheBackendInterface:: |
|
ApcuBackend:: |
protected | function | Prepares a cached item. | |
ApcuBackend:: |
public | function |
Remove a cache bin. Overrides CacheBackendInterface:: |
|
ApcuBackend:: |
public | function |
Stores data in the persistent cache. Overrides CacheBackendInterface:: |
|
ApcuBackend:: |
public | function |
Store multiple items in the persistent cache. Overrides CacheBackendInterface:: |
|
ApcuBackend:: |
public | function | Constructs a new ApcuBackend instance. | |
CacheBackendInterface:: |
constant | Indicates that the item should never be removed unless explicitly deleted. |