src/Qutee/Persistor/Redis.php
public function addTask(\Qutee\Task $task)
    {
        $queue = $this->_createQueueName($task->getPriority());

        // Remember all the queues we are using
        $this->_getRedis()->sadd('queues', $queue);

        $key = $this->_createKey($task);

        // Check if the task is unique and already exists
        if ($task->isUnique() && $this->_getRedis()->get($key) !== false) {
            return $this;
        }

        // Remember that we set the task to the queue
        $this->_getRedis()->set($key, $queue);

        // Add task to queue
        $data = serialize(array('task' => serialize($task), 'key' => $key));
        $this->_getRedis()->rpush($queue, $data);

        return $this;
    }
public function addTask(\Qutee\Task $task)
    {
        $queue = $this->_createQueueName($task->getPriority());

        // Remember all the queues we are using
        $this->_getRedis()->sadd('queues', $queue);

        $key = $this->_createKey($task);

        // Check if the task is unique and already exists
        if ($task->isUnique() && $this->_getRedis()->get($key) !== false) {
            return $this;
        }

        // Remember that we set the task to the queue
        $this->_getRedis()->set($key, $queue);

        // Add task to queue
        $data = serialize(array('task' => serialize($task), 'key' => $key));
        $this->_getRedis()->rpush($queue, $data);

        return $this;
    }
Add task to queue

@param \Qutee\Task $task

@return \Qutee\Persistor\Redis