LlenCommand: Contents
  LLEN _key_
    Return value

LlenCommand

#sidebar ListCommandsSidebar

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.