REDIS – Count the elements in a hash

HLEN key

Returns the number of fields contained in the hash stored at key.

Return value

Integer reply: number of fields in the hash, or 0 when key does not exist.


Leave a Reply

Your email address will not be published. Required fields are marked *