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::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::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::set

public ChainedFastBackend::set($cid, $data, $expire = Cache::PERMANENT, array $tags = array()) Stores data in the persistent cache. Core cache implementations set the created time on cache item with microtime(TRUE) rather than REQUEST_TIME_FLOAT, because the created time of cache items should match when they are created, not when the request started. Apart from being more accurate, this increases the chance an item will legitimately be considered valid. Parameters string $cid: The cache ID of

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::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::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::get

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

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

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