You are here

public function DatabaseRawBackend::removeBin in Supercache 2.0.x

Same name and namespace in other branches
  1. 8 src/Cache/DatabaseRawBackend.php \Drupal\supercache\Cache\DatabaseRawBackend::removeBin()

Remove a cache bin.

Overrides CacheRawBackendInterface::removeBin

File

src/Cache/DatabaseRawBackend.php, line 340
Contains \Drupal\supercache\Cache\DatabaseRawBackend.

Class

DatabaseRawBackend
Defines a default cache implementation.

Namespace

Drupal\supercache\Cache

Code

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