mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-24 17:25:13 +00:00
Merge pull request #237 from drahmel/master
Added remove_queue command from Resque
This commit is contained in:
commit
df69e8980c
@ -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,
|
||||
* decode it and return it.
|
||||
|
Loading…
Reference in New Issue
Block a user