function BackendChain::garbageCollection
Performs garbage collection on a cache bin.
The backend may choose to delete expired or invalidated items.
Overrides CacheBackendInterface::garbageCollection
File
- 
              core/
lib/ Drupal/ Core/ Cache/ BackendChain.php, line 199  
Class
- BackendChain
 - Defines a chained cache implementation for combining multiple cache backends.
 
Namespace
Drupal\Core\CacheCode
public function garbageCollection() {
  foreach ($this->backends as $backend) {
    $backend->garbageCollection();
  }
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.