lib/resque.rb
def list_range(key, start = 0, count = 1)
    if count == 1
      decode(redis.lindex(key, start))
    else
      Array(redis.lrange(key, start, start+count-1)).map do |item|
        decode(item)
      end
    end
  end
# Does the dirty work of fetching a range of items from a Redis list
# and converting them into Ruby objects.
Does the dirty work of fetching a range of items from a Redis list
and converting them into Ruby objects.
Does the dirty work of fetching a range of items from a Redis list and converting them into Ruby objects .
def list_range(key, start = 0, count = 1)
    if count == 1
      decode(redis.lindex(key, start))
    else
      Array(redis.lrange(key, start, start+count-1)).map do |item|
        decode(item)
      end
    end
  end
def list_range ( key , start = 0 , count = 1 ) if count == 1 decode ( redis . lindex ( key , start ) ) else Array ( redis . lrange ( key , start , start + count - 1 ) ) . map do | item | decode ( item ) end end end
Does the dirty work of fetching a range of items from a Redis list
and converting them into Ruby objects.
Does the dirty work of fetching a range of items from a Redis list and converting them into Ruby objects .
key
start
count