mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 13:42:22 +00:00
Merge pull request #237 from drahmel/master
Added remove_queue command from Resque
This commit is contained in:
commit
df69e8980c
1 changed files with 13 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue