You are here

public function CacheBackendMongodb::deleteAll in MongoDB 8

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

Deletes all cache items in a bin.

Overrides CacheBackendInterface::deleteAll

File

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

Class

CacheBackendMongodb
Defines MongoDB cache implementation.

Namespace

Drupal\mongodb

Code

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