function MemoryBackend::deleteAll

Deletes all cache items in a bin.

Overrides CacheBackendInterface::deleteAll

File

core/lib/Drupal/Core/Cache/MemoryBackend.php, line 142

Class

MemoryBackend
Defines a memory cache implementation.

Namespace

Drupal\Core\Cache

Code

public function deleteAll() {
  $this->cache = [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.