You are here

public function Predis::__construct in Redis 8

Same name in this branch
  1. 8 src/Lock/Predis.php \Drupal\redis\Lock\Predis::__construct()
  2. 8 src/Flood/Predis.php \Drupal\redis\Flood\Predis::__construct()
  3. 8 src/Queue/Predis.php \Drupal\redis\Queue\Predis::__construct()
  4. 8 src/Cache/Predis.php \Drupal\redis\Cache\Predis::__construct()
  5. 8 src/PersistentLock/Predis.php \Drupal\redis\PersistentLock\Predis::__construct()

Constructs a \Drupal\redis\Queue\Predis object.

Parameters

string $name: The name of the queue.

array $settings: Array of Redis-related settings for this queue.

\Predis\Client $client: The Predis client.

Overrides QueueBase::__construct

File

src/Queue/Predis.php, line 29

Class

Predis
Redis queue implementation using Predis library backend.

Namespace

Drupal\redis\Queue

Code

public function __construct($name, array $settings, \Predis\Client $client) {
  parent::__construct($name, $settings);
  $this->client = $client;
}