hmset
HMSET
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Set multiple fields and values
The usage is hmset key field1 value1 field2 value2.
Example
| Command> | hmset user-1 email charlie@redisgate.com language English gender m |
| Result> | OK |
| Command> | hgetall user-1 |
| Result> |
0) email -> charlie@redisgate.com 1) language -> English 2) gender -> m |
Syntax
HMSET key field value [field value ...]
- 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 |
| << HLEN | HMSET | HMGET >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
