You are here

public function QueueMongodbFactory::get in MongoDB 8

Constructs a new queue object for a given name.

Parameters

string $name: The name of the collection holding key and value pairs.

Return value

\Drupal\mongodb\QueueMongodb A queue implementation for the given queue.

File

src/QueueMongodbFactory.php, line 41
Contains \Drupal\mongodb\QueueMongodbFactory.

Class

QueueMongodbFactory
Defines the queue factory for the MongoDB backend.

Namespace

Drupal\mongodb

Code

public function get($name) {
  return new QueueMongodb($this->mongo, $name);
}