class Apcu4Backend

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

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\Cache
View 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

Title Sort descending Modifiers Object type Summary Overriden Title
Apcu4Backend::getIterator protected function Overrides ApcuBackend::getIterator
ApcuBackend::$bin protected property The name of the cache bin to use.
ApcuBackend::$binPrefix protected property Prefix for all keys in this cache bin.
ApcuBackend::$checksumProvider protected property The cache tags checksum provider.
ApcuBackend::$sitePrefix protected property Prefix for all keys in the storage that belong to this site.
ApcuBackend::delete public function Deletes an item from the cache. Overrides CacheBackendInterface::delete
ApcuBackend::deleteAll public function Deletes all cache items in a bin. Overrides CacheBackendInterface::deleteAll
ApcuBackend::deleteMultiple public function Deletes multiple items from the cache. Overrides CacheBackendInterface::deleteMultiple
ApcuBackend::garbageCollection public function Performs garbage collection on a cache bin. Overrides CacheBackendInterface::garbageCollection
ApcuBackend::get public function Returns data from the persistent cache. Overrides CacheBackendInterface::get
ApcuBackend::getAll protected function Returns all cached items, optionally limited by a cache ID prefix.
ApcuBackend::getApcuKey public function Prepends the APCu user variable prefix for this bin to a cache item ID.
ApcuBackend::getMultiple public function Returns data from the persistent cache when given an array of cache IDs. Overrides CacheBackendInterface::getMultiple
ApcuBackend::invalidate public function Marks a cache item as invalid. Overrides CacheBackendInterface::invalidate
ApcuBackend::invalidateAll public function Marks all cache items as invalid. Overrides CacheBackendInterface::invalidateAll
ApcuBackend::invalidateMultiple public function Marks cache items as invalid. Overrides CacheBackendInterface::invalidateMultiple
ApcuBackend::prepareItem protected function Prepares a cached item.
ApcuBackend::removeBin public function Remove a cache bin. Overrides CacheBackendInterface::removeBin
ApcuBackend::set public function Stores data in the persistent cache. Overrides CacheBackendInterface::set
ApcuBackend::setMultiple public function Store multiple items in the persistent cache. Overrides CacheBackendInterface::setMultiple
ApcuBackend::__construct public function Constructs a new ApcuBackend instance.
CacheBackendInterface::CACHE_PERMANENT constant Indicates that the item should never be removed unless explicitly deleted.

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