You are here

public function CacheBackendInterface::garbageCollection in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/CacheBackendInterface.php \Drupal\Core\Cache\CacheBackendInterface::garbageCollection()
  2. 10 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.

7 methods override CacheBackendInterface::garbageCollection()
ApcuBackend::garbageCollection in core/lib/Drupal/Core/Cache/ApcuBackend.php
Performs garbage collection on a cache bin.
BackendChain::garbageCollection in core/lib/Drupal/Core/Cache/BackendChain.php
Performs garbage collection on a cache bin.
ChainedFastBackend::garbageCollection in core/lib/Drupal/Core/Cache/ChainedFastBackend.php
Performs garbage collection on a cache bin.
DatabaseBackend::garbageCollection in core/lib/Drupal/Core/Cache/DatabaseBackend.php
Performs garbage collection on a cache bin.
MemoryBackend::garbageCollection in core/lib/Drupal/Core/Cache/MemoryBackend.php
Performs garbage collection on a cache bin.

... See full list

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();