function CacheBackendDecorator::garbageCollection

Performs garbage collection on a cache bin.

The backend may choose to delete expired or invalidated items.

Overrides CacheBackendInterface::garbageCollection

File

core/modules/system/tests/modules/performance_test/src/Cache/CacheBackendDecorator.php, line 158

Class

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

Namespace

Drupal\performance_test\Cache

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.