ApcuBackend::removeBin

public ApcuBackend::removeBin() Remove a cache bin. Overrides CacheBackendInterface::removeBin File core/lib/Drupal/Core/Cache/ApcuBackend.php, line 220 Class ApcuBackend Stores cache items in the Alternative PHP Cache User Cache (APCu). Namespace Drupal\Core\Cache Code public function removeBin() { apcu_delete($this->getIterator('/^' . preg_quote($this->binPrefix, '/') . '/')); }

ApcuBackend::prepareItem

protected ApcuBackend::prepareItem($cache, $allow_invalid) Prepares a cached item. Checks that the item is either permanent or did not expire. Parameters \stdClass $cache: An item loaded from cache_get() or cache_get_multiple(). bool $allow_invalid: If TRUE, a cache item may be returned even if it is expired or has been invalidated. See ::get(). Return value mixed The cache item or FALSE if the item expired. File core/lib/Drupal/Core/Cache/ApcuBackend.php, line 138 Class ApcuBackend Stor

ApcuBackend::invalidateMultiple

public ApcuBackend::invalidateMultiple(array $cids) Marks cache items as invalid. Invalid items may be returned in later calls to get(), if the $allow_invalid argument is TRUE. Parameters string[] $cids: An array of cache IDs to invalidate. Overrides CacheBackendInterface::invalidateMultiple See also \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple() \Drupal\Core\Cache\CacheBackendInterface::invalidate() \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() File core/lib/Drupal/Co

ApcuBackend::invalidateAll

public ApcuBackend::invalidateAll() Marks all cache items as invalid. Invalid items may be returned in later calls to get(), if the $allow_invalid argument is TRUE. Overrides CacheBackendInterface::invalidateAll See also \Drupal\Core\Cache\CacheBackendInterface::deleteAll() \Drupal\Core\Cache\CacheBackendInterface::invalidate() \Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple() File core/lib/Drupal/Core/Cache/ApcuBackend.php, line 243 Class ApcuBackend Stores cache items in th

ApcuBackend::invalidate

public ApcuBackend::invalidate($cid) Marks a cache item as invalid. Invalid items may be returned in later calls to get(), if the $allow_invalid argument is TRUE. Parameters string $cid: The cache ID to invalidate. Overrides CacheBackendInterface::invalidate See also \Drupal\Core\Cache\CacheBackendInterface::delete() \Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple() \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() File core/lib/Drupal/Core/Cache/ApcuBackend.php, line 227

ApcuBackend::getMultiple

public ApcuBackend::getMultiple(&$cids, $allow_invalid = FALSE) Returns data from the persistent cache when given an array of cache IDs. Parameters array $cids: An array of cache IDs for the data to retrieve. This is passed by reference, and will have the IDs successfully returned from cache removed. bool $allow_invalid: (optional) If TRUE, cache items may be returned even if they have expired or been invalidated. Such items may sometimes be preferred, if the alternative is recalculating t

ApcuBackend::getIterator

protected ApcuBackend::getIterator($search = NULL, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE) Instantiates and returns the APCUIterator class. Parameters mixed $search: A PCRE regular expression that matches against APC key names, either as a string for a single regular expression, or as an array of regular expressions. Or, optionally pass in NULL to skip the search. int $format: The desired format, as configured with one or more of the APC_ITER_* constants. int $chunk

ApcuBackend::getApcuKey

public ApcuBackend::getApcuKey($cid) 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. File core/lib/Drupal/Core/Cache/ApcuBackend.php, line 66 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; }

ApcuBackend::getAll

protected ApcuBackend::getAll($prefix = '') Returns all cached items, optionally limited by a cache ID prefix. APCu is a memory cache, shared across all server processes. To prevent cache item clashes with other applications/installations, every cache item is prefixed with a unique string for this site. Therefore, functions like apcu_clear_cache() cannot be used, and instead, a list of all cache items belonging to this application need to be retrieved through this method instead. Parameters st

ApcuBackend::get

public ApcuBackend::get($cid, $allow_invalid = FALSE) Returns data from the persistent cache. Parameters string $cid: The cache ID of the data to retrieve. bool $allow_invalid: (optional) If TRUE, a cache item may be returned even if it is expired or has been invalidated. Such items may sometimes be preferred, if the alternative is recalculating the value stored in the cache, especially if another concurrent request is already recalculating the same value. The "valid" property of the returned