You are here

public function DatabaseBackend::removeBin in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/DatabaseBackend.php \Drupal\Core\Cache\DatabaseBackend::removeBin()

Remove a cache bin.

Overrides CacheBackendInterface::removeBin

File

core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 399

Class

DatabaseBackend
Defines a default cache implementation.

Namespace

Drupal\Core\Cache

Code

public function removeBin() {
  try {
    $this->connection
      ->schema()
      ->dropTable($this->bin);
  } catch (\Exception $e) {
    $this
      ->catchException($e);
  }
}