You are here

public function KeyvalueMongodb::deleteMultiple in MongoDB 8

Deletes multiple items from the key/value store.

Parameters

array $keys: A list of item names to delete.

Overrides KeyValueStoreInterface::deleteMultiple

File

src/KeyvalueMongodb.php, line 206

Class

KeyvalueMongodb
This class holds a MongoDB key-value backend.

Namespace

Drupal\mongodb

Code

public function deleteMultiple(array $keys) {
  $this
    ->collection()
    ->remove(array(
    '_id' => array(
      '$in' => $this
        ->strMap($keys),
    ),
  ));
}