ChainedFastBackend::reset

public ChainedFastBackend::reset() @todo Document in https://www.drupal.org/node/2311945. File core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 277 Class ChainedFastBackend Defines a backend with a fast and a consistent backend chain. Namespace Drupal\Core\Cache Code public function reset() { $this->lastWriteTimestamp = NULL; }

ChainedFastBackend::removeBin

public ChainedFastBackend::removeBin() Remove a cache bin. Overrides CacheBackendInterface::removeBin File core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 269 Class ChainedFastBackend Defines a backend with a fast and a consistent backend chain. Namespace Drupal\Core\Cache Code public function removeBin() { $this->consistentBackend->removeBin(); $this->fastBackend->removeBin(); }

ChainedFastBackend::markAsOutdated

protected ChainedFastBackend::markAsOutdated() Marks the fast cache bin as outdated because of a write. File core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 295 Class ChainedFastBackend Defines a backend with a fast and a consistent backend chain. Namespace Drupal\Core\Cache Code protected function markAsOutdated() { // Clocks on a single server can drift. Multiple servers may have slightly // differing opinions about the current time. Given that, do not assume // 'now' o

ChainedFastBackend::LAST_WRITE_TIMESTAMP_PREFIX

Cache key prefix for the bin-specific entry to track the last write. File core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 53 Class ChainedFastBackend Defines a backend with a fast and a consistent backend chain. Namespace Drupal\Core\Cache Code const LAST_WRITE_TIMESTAMP_PREFIX = 'last_write_timestamp_';

ChainedFastBackend::invalidateTags

public ChainedFastBackend::invalidateTags(array $tags) Marks cache items with any of the specified tags as invalid. Parameters string[] $tags: The list of tags for which to invalidate cache items. Overrides CacheTagsInvalidatorInterface::invalidateTags File core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 243 Class ChainedFastBackend Defines a backend with a fast and a consistent backend chain. Namespace Drupal\Core\Cache Code public function invalidateTags(array $tags) { if

ChainedFastBackend::invalidateMultiple

public ChainedFastBackend::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/Dr

ChainedFastBackend::invalidateAll

public ChainedFastBackend::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/ChainedFastBackend.php, line 253 Class ChainedFastBackend Def

ChainedFastBackend::invalidate

public ChainedFastBackend::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/ChainedFastBackend

ChainedFastBackend::getMultiple

public ChainedFastBackend::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 recalcul

ChainedFastBackend::getLastWriteTimestamp

protected ChainedFastBackend::getLastWriteTimestamp() Gets the last write timestamp. File core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 284 Class ChainedFastBackend Defines a backend with a fast and a consistent backend chain. Namespace Drupal\Core\Cache Code protected function getLastWriteTimestamp() { if ($this->lastWriteTimestamp === NULL) { $cache = $this->consistentBackend->get(self::LAST_WRITE_TIMESTAMP_PREFIX . $this->bin); $this->lastWriteTime