CacheTagsInvalidator::getInvalidatorCacheBins

protected CacheTagsInvalidator::getInvalidatorCacheBins() Returns all cache bins that need to be notified about invalidations. Return value \Drupal\Core\Cache\CacheTagsInvalidatorInterface[] An array of cache backend objects that implement the invalidator interface, keyed by their cache bin. File core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php, line 68 Class CacheTagsInvalidator Passes cache tag events to classes that wish to respond to them. Namespace Drupal\Core\Cache Code prote

CacheTagsChecksumInterface::isValid

public CacheTagsChecksumInterface::isValid($checksum, array $tags) Returns whether the checksum is valid for the given cache tags. Used when retrieving a cache item in a cache backend, to verify that no cache tag based invalidation happened. Parameters int $checksum: The checksum that was stored together with the cache item. string[] $tags: The cache tags that were stored together with the cache item. Return value bool FALSE if cache tag invalidations happened for the passed in tags since the

CacheTagsInvalidator::$invalidators

Holds an array of cache tags invalidators. Type: \Drupal\Core\Cache\CacheTagsInvalidatorInterface[] File core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php, line 19 Class CacheTagsInvalidator Passes cache tag events to classes that wish to respond to them. Namespace Drupal\Core\Cache Code protected $invalidators = array();

CacheTagsChecksumInterface::getCurrentChecksum

public CacheTagsChecksumInterface::getCurrentChecksum(array $tags) Returns the sum total of validations for a given set of tags. Called by a backend when storing a cache item. Parameters string[] $tags: Array of cache tags. Return value string Cache tag invalidations checksum. File core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php, line 32 Class CacheTagsChecksumInterface Provides checksums for cache tag invalidations. Namespace Drupal\Core\Cache Code public function getCurre

CacheTagsInvalidator

Passes cache tag events to classes that wish to respond to them. Hierarchy class \Drupal\Core\Cache\CacheTagsInvalidator implements CacheTagsInvalidatorInterface uses ContainerAwareTrait File core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php, line 10 Namespace Drupal\Core\Cache Members Name Modifiers Type Description CacheTagsInvalidator::$invalidators protected property Holds an array of cache tags invalidators. CacheTagsInvalidator::addInvalidator public functi

CacheTagsChecksumInterface::reset

public CacheTagsChecksumInterface::reset() Reset statically cached tags. This is only used by tests. File core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php, line 56 Class CacheTagsChecksumInterface Provides checksums for cache tag invalidations. Namespace Drupal\Core\Cache Code public function reset();

CacheFactoryInterface

An interface defining cache factory classes. Hierarchy interface \Drupal\Core\Cache\CacheFactoryInterface File core/lib/Drupal/Core/Cache/CacheFactoryInterface.php, line 8 Namespace Drupal\Core\Cache Members Name Modifiers Type Description CacheFactoryInterface::get public function Gets a cache backend class for a given cache bin.

CacheRouterRebuildSubscriber

Clear cache tags when the router is rebuilt. Hierarchy class \Drupal\Core\EventSubscriber\CacheRouterRebuildSubscriber implements EventSubscriberInterface File core/lib/Drupal/Core/EventSubscriber/CacheRouterRebuildSubscriber.php, line 12 Namespace Drupal\Core\EventSubscriber Members Name Modifiers Type Description CacheRouterRebuildSubscriber::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. Overrides EventSu

CacheFactoryInterface::get

public CacheFactoryInterface::get($bin) Gets a cache backend class for a given cache bin. Parameters string $bin: The cache bin for which a cache backend object should be returned. Return value \Drupal\Core\Cache\CacheBackendInterface The cache backend object associated with the specified bin. File core/lib/Drupal/Core/Cache/CacheFactoryInterface.php, line 19 Class CacheFactoryInterface An interface defining cache factory classes. Namespace Drupal\Core\Cache Code public function get(

CacheRouterRebuildSubscriber::getSubscribedEvents

public static CacheRouterRebuildSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $pri