public function BackendChain::garbageCollection

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

Overrides CacheBackendInterface::garbageCollection

File

drupal/core/lib/Drupal/Core/Cache/BackendChain.php, line 216
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 garbageCollection() {
  foreach ($this->backends as $backend) {
    $backend
      ->garbageCollection();
  }
}