public function QueueRedisFactory::get in Redis 8
Constructs a new queue object for a given name.
Parameters
string $name: The name of the collection holding key and value pairs.
Return value
\Drupal\Core\Queue\DatabaseQueue A key/value store implementation for the given $collection.
File
- src/
Queue/ QueueRedisFactory.php, line 50
Class
- QueueRedisFactory
- Defines the queue factory for the Redis backend.
Namespace
Drupal\redis\QueueCode
public function get($name) {
$settings = $this->settings
->get('redis_queue_' . $name, [
'reserve_timeout' => NULL,
]);
$class_name = $this->clientFactory
->getClass(static::CLASS_NAMESPACE);
return new $class_name($name, $settings, $this->clientFactory
->getClient());
}