CacheCollector::$cacheInvalidated

Flag that indicates of the cache has been invalidated. Type: bool File core/lib/Drupal/Core/Cache/CacheCollector.php, line 90 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code protected $cacheInvalidated = FALSE;

CacheCollector::$cacheCreated

Stores the cache creation time. This is used to check if an invalidated cache item has been overwritten in the meantime. Type: int File core/lib/Drupal/Core/Cache/CacheCollector.php, line 83 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code protected $cacheCreated;

CacheCollector::$cache

The cache backend that should be used. Type: \Drupal\Core\Cache\CacheBackendInterface File core/lib/Drupal/Core/Cache/CacheCollector.php, line 45 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code protected $cache;

CacheCollector

Default implementation for CacheCollectorInterface. By default, the class accounts for caches where calling functions might request keys that won't exist even after a cache rebuild. This prevents situations where a cache rebuild would be triggered over and over due to a 'missing' item. These cases are stored internally as a value of NULL. This means that the CacheCollector::get() method must be overridden if caching data where the values can legitimately be NULL, and where CacheCollector->ha

CacheBackendInterface::setMultiple

public CacheBackendInterface::setMultiple(array $items) Store multiple items in the persistent cache. Parameters array $items: An array of cache items, keyed by cid. In the form: $items = array( $cid => array( // Required, will be automatically serialized if not a string. 'data' => $data, // Optional, defaults to CacheBackendInterface::CACHE_PERMANENT. 'expire' => CacheBackendInterface::CACHE_PERMANENT, // (optional) The cache tags for this item, se

CacheBackendInterface::set

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

CacheBackendInterface::removeBin

public CacheBackendInterface::removeBin() Remove a cache bin. File core/lib/Drupal/Core/Cache/CacheBackendInterface.php, line 217 Class CacheBackendInterface Defines an interface for cache implementations. Namespace Drupal\Core\Cache Code public function removeBin();

CacheBackendInterface::invalidateMultiple

public CacheBackendInterface::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. See also \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple() \Drupal\Core\Cache\CacheBackendInterface::invalidate() \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() File core/lib/Drupal/Core/Cache/CacheBackendInterface.php, line 1

CacheBackendInterface::invalidateAll

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

CacheBackendInterface::invalidate

public CacheBackendInterface::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. See also \Drupal\Core\Cache\CacheBackendInterface::delete() \Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple() \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() File core/lib/Drupal/Core/Cache/CacheBackendInterface.php, line 178 Class CacheBackendI