You are here

public function ChainedFastRawBackend::garbageCollection in Supercache 2.0.x

Same name and namespace in other branches
  1. 8 src/Cache/ChainedFastRawBackend.php \Drupal\supercache\Cache\ChainedFastRawBackend::garbageCollection()

Performs garbage collection on a cache bin.

The backend may choose to delete expired or invalidated items.

Overrides CacheRawBackendInterface::garbageCollection

File

src/Cache/ChainedFastRawBackend.php, line 225
Contains \Drupal\supercache\Cache\ChainedFastRawBackend.

Class

ChainedFastRawBackend
Defines a backend with a fast and a consistent backend chain.

Namespace

Drupal\supercache\Cache

Code

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