mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-25 09:45:15 +00:00
Added remove_queue command from Resque
This commit is contained in:
parent
eb7ab0c81a
commit
f29e09d68b
@ -143,6 +143,19 @@ class Resque
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove specified queue
|
||||||
|
*
|
||||||
|
* @param string $queue The name of the queue to remove.
|
||||||
|
* @return integer number of deleted items
|
||||||
|
*/
|
||||||
|
public static function removeQueue($queue)
|
||||||
|
{
|
||||||
|
$num = self::removeList($queue);
|
||||||
|
self::redis()->srem('queues', $queue);
|
||||||
|
return $num;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pop an item off the end of the specified queues, using blocking list pop,
|
* Pop an item off the end of the specified queues, using blocking list pop,
|
||||||
* decode it and return it.
|
* decode it and return it.
|
||||||
|
Loading…
Reference in New Issue
Block a user