You are here

public function CacheBackendWrapper::garbageCollection in Devel 8.2

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::garbageCollection()
  2. 8 webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::garbageCollection()
  3. 4.x webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::garbageCollection()

Performs garbage collection on a cache bin.

The backend may choose to delete expired or invalidated items.

Overrides CacheBackendInterface::garbageCollection

File

webprofiler/src/Cache/CacheBackendWrapper.php, line 165

Class

CacheBackendWrapper
Wraps an existing cache backend to track calls to the cache backend.

Namespace

Drupal\webprofiler\Cache

Code

public function garbageCollection() {
  return $this->cacheBackend
    ->garbageCollection();
}