Module Description
Did you ever want a queue that only accepts unique items? This module provides a way of doing that. If you try to insert a duplicated item in the queue, the item is ignored.

// $data can be anything. $data = ['Lorem', 'ipsum']; $queue_name = 'your_queue_name'; $queue = \Drupal::service('queue')->get($queue_name); $queue->createItem($data); // This will insert a duplicate, and will return FALSE. if ($queue->createItem($data) === FALSE) { // The item was a duplicate, respond appropriately. } Usage
In order for your queue to use the Queue Unique you need to update your settings.php file:

$settings['queue_service_your_queue_name'] = 'queue_unique.database';
Project Usage
786
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module solves the problem of creating a queue that only accepts unique items, ignoring any duplicates that are inserted.
Data Name
queue_unique

OPENAI CHATBOT

OPENAI CHATBOT

16:31:20
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.