public function DatabaseBackend::garbageCollection

Same name in this branch
  1. 9.x drupal/core/lib/Drupal/Core/Cache/DatabaseBackend.php \Drupal\Core\Cache\DatabaseBackend::garbageCollection()
  2. 9.x drupal/core/lib/Drupal/Core/Flood/DatabaseBackend.php \Drupal\Core\Flood\DatabaseBackend::garbageCollection()

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

Overrides CacheBackendInterface::garbageCollection

2 calls to DatabaseBackend::garbageCollection()
1 method overrides DatabaseBackend::garbageCollection()

File

drupal/core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 266
Definition of Drupal\Core\Cache\DatabaseBackend.

Class

DatabaseBackend
Defines a default cache implementation.

Namespace

Drupal\Core\Cache

Code

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