You are here

public function Redis_Queue::__construct in Redis 7.3

Same name and namespace in other branches
  1. 7.2 lib/Redis/Queue.php \Redis_Queue::__construct()

Default contructor

Beware that DrupalQueueInterface does not defines the __construct method in the interface yet is being used from DrupalQueue::get()

Parameters

unknown $name:

File

lib/Redis/Queue.php, line 18

Class

Redis_Queue

Code

public function __construct($name) {
  $className = Redis_Client::getClass(Redis_Client::REDIS_IMPL_QUEUE);
  $this->backend = new $className(Redis_Client::getClient(), $name);
}