STRLEN
Since 1.1.0Strings
Syntax
STRLEN keyReturns the length, in bytes, of the string at key.
Reply
- The length.
0if the key does not exist.- A
WRONGTYPEerror if the key is not a string.
Examples
> SET k "hello world"
OK
> STRLEN k
(integer) 11
> STRLEN missing
(integer) 0