lib/resque.rb
# 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
      with_retries do
        decode redis.lindex(key, start)
      end
    else
      with_retries do
        Array(redis.lrange(key, start, start+count-1)).map do |item|
          decode item
        end
      end
    end
  end
def list_range ( key , start = 0 , count = 1 ) if count == 1 with_retries do decode redis . lindex ( key , start ) end else with_retries do Array ( redis . lrange ( key , start , start + count - 1 ) ) . map do | item | decode item end 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