CacheCollector::destruct

public CacheCollector::destruct() Performs destruct operations. Overrides DestructableInterface::destruct File core/lib/Drupal/Core/Cache/CacheCollector.php, line 313 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code public function destruct() { $this->updateCache(); }

CacheCollector::has

public CacheCollector::has($key) Returns whether data exists for this key. Parameters string $key: Key that identifies the data. Overrides CacheCollectorInterface::has File core/lib/Drupal/Core/Cache/CacheCollector.php, line 133 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code public function has($key) { // Make sure the value is loaded. $this->get($key); return isset($this->storage[$key]) || array_key_exists($key, $

CacheCollector::$keysToPersist

An array of keys to add to the cache on service termination. Type: array File core/lib/Drupal/Core/Cache/CacheCollector.php, line 59 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code protected $keysToPersist = array();

CacheCollector::$keysToRemove

An array of keys to remove from the cache on service termination. Type: array File core/lib/Drupal/Core/Cache/CacheCollector.php, line 66 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code protected $keysToRemove = array();

CacheCollector::$lock

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

CacheCollector::$tags

A list of tags that are used for the cache entry. Type: array File core/lib/Drupal/Core/Cache/CacheCollector.php, line 38 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code protected $tags;

CacheCollector::$storage

Storage for the data itself. Type: array File core/lib/Drupal/Core/Cache/CacheCollector.php, line 73 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code protected $storage = array();

CacheCollector::clear

public CacheCollector::clear() Clears the collected cache entry. Overrides CacheCollectorInterface::clear File core/lib/Drupal/Core/Cache/CacheCollector.php, line 300 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code public function clear() { $this->reset(); if ($this->tags) { Cache::invalidateTags($this->tags); } else { $this->cache->delete($this->getCid()); } }

CacheCollector::$cacheLoaded

Indicates if the collected cache was already loaded. The collected cache is lazy loaded when an entry is set, get or deleted. Type: bool File core/lib/Drupal/Core/Cache/CacheCollector.php, line 99 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code protected $cacheLoaded = FALSE;

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;