public function BackendChain::invalidate

Implements Drupal\Core\Cache\CacheBackendInterface::invalidate().

Overrides CacheBackendInterface::invalidate

File

drupal/core/lib/Drupal/Core/Cache/BackendChain.php, line 180
Definition of Drupal\Core\Cache\BackendChain.

Class

BackendChain
Defines a chained cache implementation for combining multiple cache backends.

Namespace

Drupal\Core\Cache

Code

public function invalidate($cid) {
  foreach ($this->backends as $backend) {
    $backend
      ->invalidate($cid);
  }
}