You are here

public function ApcuBackend::garbageCollection in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/ApcuBackend.php \Drupal\Core\Cache\ApcuBackend::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/ApcuBackend.php, line 215

Class

ApcuBackend
Stores cache items in the Alternative PHP Cache User Cache (APCu).

Namespace

Drupal\Core\Cache

Code

public function garbageCollection() {

  // APCu performs garbage collection automatically.
}