You are here

public function Redis_Queue::createItem in Redis 7.2

Same name and namespace in other branches
  1. 7.3 lib/Redis/Queue.php \Redis_Queue::createItem()

Add a queue item and store it directly to the queue.

Parameters

$data: Arbitrary data to be associated with the new task in the queue.

Return value

TRUE if the item was successfully created and was (best effort) added to the queue, otherwise FALSE. We don't guarantee the item was committed to disk etc, but as far as we know, the item is now in the queue.

Overrides DrupalQueueInterface::createItem

File

lib/Redis/Queue.php, line 24

Class

Redis_Queue

Code

public function createItem($data) {
  return $this->backend
    ->createItem($data);
}