You are here

public function CacheBackendMongodb::removeBin in MongoDB 8

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

Remove a cache bin.

Overrides CacheBackendInterface::removeBin

File

src/CacheBackendMongodb.php, line 337
Definition of Drupal\mongodb/CacheBackendMongodb.

Class

CacheBackendMongodb
Defines MongoDB cache implementation.

Namespace

Drupal\mongodb

Code

public function removeBin() {
  $this->collection
    ->drop();
}