You are here

public function PhpRedis::__construct in Redis 8

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

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

Parameters

string $name: The name of the queue.

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

\Redis $client: The PhpRedis client.

Overrides QueueBase::__construct

File

src/Queue/PhpRedis.php, line 29

Class

PhpRedis
Redis queue implementation using PhpRedis extension backend.

Namespace

Drupal\redis\Queue

Code

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