public function Predis::__construct in Redis 8
Same name in this branch
- 8 src/Lock/Predis.php \Drupal\redis\Lock\Predis::__construct()
- 8 src/Flood/Predis.php \Drupal\redis\Flood\Predis::__construct()
- 8 src/Queue/Predis.php \Drupal\redis\Queue\Predis::__construct()
- 8 src/Cache/Predis.php \Drupal\redis\Cache\Predis::__construct()
- 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\QueueCode
public function __construct($name, array $settings, \Predis\Client $client) {
parent::__construct($name, $settings);
$this->client = $client;
}