Method: Resque::DataStore::QueueAccess#list_range
- Defined in:
- lib/resque/data_store.rb
#list_range(key, start = 0, count = 1) ⇒ Object
Private: do not call
153 154 155 156 157 158 159 |
# File 'lib/resque/data_store.rb', line 153 def list_range(key, start = 0, count = 1) if count == 1 @redis.lindex(key, start) else Array(@redis.lrange(key, start, start+count-1)) end end |