We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 941d49c + 44940e8 commit df69e89Copy full SHA for df69e89
lib/Resque.php
@@ -143,6 +143,19 @@ public static function dequeue($queue, $items = Array())
143
}
144
145
146
+ /**
147
+ * Remove specified queue
148
+ *
149
+ * @param string $queue The name of the queue to remove.
150
+ * @return integer Number of deleted items
151
+ */
152
+ public static function removeQueue($queue)
153
+ {
154
+ $num = self::removeList($queue);
155
+ self::redis()->srem('queues', $queue);
156
+ return $num;
157
+ }
158
+
159
/**
160
* Pop an item off the end of the specified queues, using blocking list pop,
161
* decode it and return it.
0 commit comments