STRLEN

Usage:
STRLEN key
Complexity:
O(1)
Since:
2.2.0

Returns the length of the string value stored at key. An error is returned when key holds a non-string value.

Examples

SET mykey "Hello world"
STRLEN mykey
STRLEN nonexisting