You are here

public function ReliablePhpRedis::__construct in Redis 8

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/ReliablePhpRedis.php, line 29

Class

ReliablePhpRedis
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;
}