You are here

public function MongoDBQueue::createQueue in MongoDB 7

Create a queue.

Overrides DrupalQueueInterface::createQueue

File

mongodb_queue/mongodb_queue.inc, line 137
Contains \MongoDBQueue.

Class

MongoDBQueue

Code

public function createQueue() {

  // Create the index.
  mongodb_collection($this->collection)
    ->ensureIndex(array(
    'expire' => 1,
    'created' => 1,
  ));
}