You are here

public function DatabaseBackend::removeBin in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 349
Contains \Drupal\Core\Cache\DatabaseBackend.

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);
  }
}