Method: Valkey::Commands::ListCommands#llen

Defined in:
lib/valkey/commands/list_commands.rb

#llen(key) ⇒ Integer

Get the length of a list.

Parameters:

  • key (String)

Returns:

  • (Integer)


14
15
16
# File 'lib/valkey/commands/list_commands.rb', line 14

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