Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MongoDbStore.php

function MongoDbStore::delete

Overrides PersistingStoreInterface::delete

File

vendor/symfony/lock/Store/MongoDbStore.php, line 262

Class

MongoDbStore
MongoDbStore is a StoreInterface implementation using MongoDB as a storage engine. Support for MongoDB server >=2.2 due to use of TTL indexes.

Namespace

Symfony\Component\Lock\Store

Code

public function delete(Key $key) : void {
    $write = new BulkWrite();
    $write->delete([
        '_id' => (string) $key,
        'token' => $this->getUniqueToken($key),
    ], [
        'limit' => 1,
    ]);
    $this->getManager()
        ->executeBulkWrite($this->namespace, $write);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal