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

CacheCollector::$cid

The cache id that is used for the cache entry. Type: string File core/lib/Drupal/Core/Cache/CacheCollector.php, line 31 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code protected $cid;

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;

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

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