HMGET

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

Get multiple values

The usage is hmget key field1 field2.

Example

Command>hmget user-1 email language
Result> 0) charlie@redisgate.com
1) English

View animation



Syntax

HMGET key field [field ...]

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

<< HMSET HMGET HKEYS >>

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