StrlenCommand: Contents
  STRLEN _key_ (Redis >
    Return value

StrlenCommand

#sidebar StringCommandsSidebar

STRLEN _key_ (Redis >

2.1.8) = Time complexity: O(1)
Returns the length of the string stored at the specified key.

Return value

Integer reply, specifically: the length of the string.