You are here

public function CacheBackendInterface::garbageCollection in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/CacheBackendInterface.php \Drupal\Core\Cache\CacheBackendInterface::garbageCollection()
  2. 9 core/lib/Drupal/Core/Cache/CacheBackendInterface.php \Drupal\Core\Cache\CacheBackendInterface::garbageCollection()

Performs garbage collection on a cache bin.

The backend may choose to delete expired or invalidated items.

1 method overrides CacheBackendInterface::garbageCollection()
MemoryBackend::garbageCollection in core/lib/Drupal/Core/Cache/MemoryBackend.php
Performs garbage collection on a cache bin.

File

core/lib/Drupal/Core/Cache/CacheBackendInterface.php, line 212

Class

CacheBackendInterface
Defines an interface for cache implementations.

Namespace

Drupal\Core\Cache

Code

public function garbageCollection();