BackendChain::invalidateMultiple

public BackendChain::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/C

BackendChain::invalidateAll

public BackendChain::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/BackendChain.php, line 198 Class BackendChain Defines a chained cac

BackendChain::invalidate

public BackendChain::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/BackendChain.php, line 1

BackendChain::getMultiple

public BackendChain::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

BackendChain::get

public BackendChain::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

BackendChain::garbageCollection

public BackendChain::garbageCollection() Performs garbage collection on a cache bin. The backend may choose to delete expired or invalidated items. Overrides CacheBackendInterface::garbageCollection File core/lib/Drupal/Core/Cache/BackendChain.php, line 207 Class BackendChain Defines a chained cache implementation for combining multiple cache backends. Namespace Drupal\Core\Cache Code public function garbageCollection() { foreach ($this->backends as $backend) { $backend->ga

BackendChain::deleteMultiple

public BackendChain::deleteMultiple(array $cids) Deletes multiple items from the cache. If the cache items are being deleted because they are no longer "fresh", you may consider using invalidateMultiple() instead. This allows callers to retrieve the invalid items by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache. Parameters array $cids: An array of cache IDs to delete. Overrides CacheBackendInterface::delet

BackendChain::deleteAll

public BackendChain::deleteAll() Deletes all cache items in a bin. Overrides CacheBackendInterface::deleteAll See also \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() \Drupal\Core\Cache\CacheBackendInterface::delete() \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple() File core/lib/Drupal/Core/Cache/BackendChain.php, line 160 Class BackendChain Defines a chained cache implementation for combining multiple cache backends. Namespace Drupal\Core\Cache Code public functi

BackendChain::delete

public BackendChain::delete($cid) Deletes an item from the cache. If the cache item is being deleted because it is no longer "fresh", you may consider using invalidate() instead. This allows callers to retrieve the invalid item by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache. Parameters string $cid: The cache ID to delete. Overrides CacheBackendInterface::delete See also \Drupal\Core\Cache\CacheBackendIn

BackendChain::appendBackend

public BackendChain::appendBackend(CacheBackendInterface $backend) Appends a cache backend to the cache chain. Parameters CacheBackendInterface $backend: The cache backend to be appended to the cache chain. Return value \Drupal\Core\Cache\BackendChain The called object. File core/lib/Drupal/Core/Cache/BackendChain.php, line 49 Class BackendChain Defines a chained cache implementation for combining multiple cache backends. Namespace Drupal\Core\Cache Code public function appendBackend