HSTRLEN

Since 1.1.0Hashes

Syntax

HSTRLEN key field
  • Flags: fast, readonly
  • ACL categories: @fast, @hash, @read
  • Arity: 3

Returns the length, in bytes, of the value of field in the hash at key.

Reply

  • The length; 0 if the field or the key does not exist.

Examples

> HSET u name Grace
(integer) 1
> HSTRLEN u name
(integer) 5