Method: Redis::Commands::Lists#llen

Defined in:
lib/redis/commands/lists.rb

#llen(key) ⇒ Integer

Get the length of a list.

Parameters:

  • key (String)

Returns:

  • (Integer)


10
11
12
# File 'lib/redis/commands/lists.rb', line 10

def llen(key)
  send_command([:llen, key])
end