HLEN

Apply for Redis Developer Course Redis Regular Inspection / Technical Support Redis Enterprise Server

Get the number of fields

The usage is hlen key.

Example

Command>hlen user-1
Result>3


Syntax

HLEN key

  • Available since version 2.0.0.
  • Time complexity is O(1).
Related commands HSET, HMGET, MSET, LPUSH, SADD, ZSET
Clients for Java Jedis, Lettuce, Redisson
Clients for C Hiredis

<< HGET HLEN HMSET >>

Email 답글이 올라오면 이메일로 알려드리겠습니다.