Method: Redis::List#range

Defined in:
lib/redis/list.rb

#range(start_index, end_index) ⇒ Object

Return a range of values from start_index to end_index. Can also use the familiar list Ruby syntax. Redis: LRANGE



83
84
85
# File 'lib/redis/list.rb', line 83

def range(start_index, end_index)
  from_redis redis.lrange(key, start_index, end_index)
end