You are here

public function MemcacheBackend::garbageCollection in Memcache API and Integration 8.2

Performs garbage collection on a cache bin.

The backend may choose to delete expired or invalidated items.

Overrides CacheBackendInterface::garbageCollection

File

src/MemcacheBackend.php, line 416

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.
}