HSTRLEN
Reports the byte length of a hash field's value.
Hashes · Example verified
Syntax covered here
HSTRLEN key fieldThe example measures an ASCII value, so its byte length also equals its character count.
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
> HSET user name Ada
1
# connection: default
> HSTRLEN user name
3