LlenCommand: Contents
  LLEN _key_
    Return value
    See also

LlenCommand

LLEN _key_

Time complexity: O(1)
Return the length of the list stored at the specified key. If thekey does not exist zero is returned (the same behaviour as forempty lists). If the value stored at key is not a list an error is returned.

Return value

Integer reply, specifically:

The length of the list.

See also