function CacheBackendInterface::garbageCollection
Same name in other branches
- 9 core/lib/Drupal/Core/Cache/CacheBackendInterface.php \Drupal\Core\Cache\CacheBackendInterface::garbageCollection()
- 10 core/lib/Drupal/Core/Cache/CacheBackendInterface.php \Drupal\Core\Cache\CacheBackendInterface::garbageCollection()
- 11.x 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.
File
-
core/
lib/ Drupal/ Core/ Cache/ CacheBackendInterface.php, line 212
Class
- CacheBackendInterface
- Defines an interface for cache implementations.
Namespace
Drupal\Core\CacheCode
public function garbageCollection();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.