src/Qutee/Persistor/Memory.php
public function addTask(\Qutee\Task $task)
    {
        $key = $this->_createKey($task);

        // Check if the task is unique and already exists
        if ($task->isUnique() && array_key_exists($key, $this->_uniqueTasks)) {
            return $this;
        }

        $this->_uniqueTasks[$key] = true;

        $this->_storage[] = serialize($task);

        return $this;
    }
public function addTask(\Qutee\Task $task)
    {
        $key = $this->_createKey($task);

        // Check if the task is unique and already exists
        if ($task->isUnique() && array_key_exists($key, $this->_uniqueTasks)) {
            return $this;
        }

        $this->_uniqueTasks[$key] = true;

        $this->_storage[] = serialize($task);

        return $this;
    }
Add task to queue

@param \Qutee\Task $task

@return \Qutee\Persistor\Memory