Method: Redis#llen

Defined in:
lib/redis.rb

#llen(key) ⇒ Fixnum

Get the length of a list.

Parameters:

  • key (String)

Returns:

  • (Fixnum)


957
958
959
960
961
# File 'lib/redis.rb', line 957

def llen(key)
  synchronize do |client|
    client.call([:llen, key])
  end
end