Hash
HSTRLEN
Returns the string length of a value in a hash.
const length = await redis.hstrlen("key", "field")
Arguments
key
string
requiredThe key of the hash.
field
string
requiredThe name of the field.
Response
0
if the hash or field does not exist. Otherwise the length of the string.
const length = await redis.hstrlen("key", "field")