STRLEN
Returns the byte length of a string value.
Strings · Example verified
Syntax covered here
STRLEN keyThe verified input is ASCII, for which byte length and character count coincide.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> SET greeting hello
"OK"
# connection: default
> STRLEN greeting
5