Method: Redis::Distributed#lindex

Defined in:
lib/redis/distributed.rb

#lindex(key, index) ⇒ Object

Get an element from a list by its index.



526
527
528
# File 'lib/redis/distributed.rb', line 526

def lindex(key, index)
  node_for(key).lindex(key, index)
end