public function DatabaseBackend::deleteAll

Implements Drupal\Core\Cache\CacheBackendInterface::deleteAll().

Overrides CacheBackendInterface::deleteAll

File

drupal/core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 240
Definition of Drupal\Core\Cache\DatabaseBackend.

Class

DatabaseBackend
Defines a default cache implementation.

Namespace

Drupal\Core\Cache

Code

public function deleteAll() {
  try {
    $this->connection
      ->truncate($this->bin)
      ->execute();
  } catch (\Exception $e) {
    $this
      ->catchException($e);
  }
}