You are here

public function MemcacheBackend::garbageCollection in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 modules/memcache/src/MemcacheBackend.php \Drupal\memcache\MemcacheBackend::garbageCollection()

Performs garbage collection on a cache bin.

The backend may choose to delete expired or invalidated items.

Overrides CacheBackendInterface::garbageCollection

File

modules/memcache/src/MemcacheBackend.php, line 284
Contains \Drupal\memcache\MemcacheBackend.

Class

MemcacheBackend
Defines a Memcache cache backend.

Namespace

Drupal\memcache

Code

public function garbageCollection() {

  // Memcache will invalidate items; That items memory allocation is then
  // freed up and reused. So nothing needs to be deleted/cleaned up here.
}