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.
1 parent df69e89 commit 5290fdeCopy full SHA for 5290fde
lib/Resque.php
@@ -259,6 +259,20 @@ public static function queues()
259
return $queues;
260
}
261
262
+ /**
263
+ * Retrieve all the items of a list with Redis
264
+ *
265
+ * @return array Array of items.
266
+ */
267
+ public static function lrange($list,$start,$stop)
268
+ {
269
+ $list = self::redis()->lrange($list,$start,$stop );
270
+ if(!is_array($list)) {
271
+ $list = array();
272
+ }
273
+ return $list;
274
275
+
276
/**
277
* Remove Items from the queue
278
* Safely moving each item to a temporary queue before processing it
0 commit comments