Saturday 18 April 2015

HMSET key field1 value1 field2 value2 ... fieldN valueN


Syntax
HMSET key field1 value1 field2 value2 ... fieldN valueN
Sets the number of fields to specific value at a time. If key doesn't exist new key is created. If field already exists, then the value stored at the field is overwritten.

127.0.0.1:6379> hmset employee 1 "Gopi Battu" 2 "Abdul Raheem" 3 "Siva Krishna" 
OK 
127.0.0.1:6379> hget employee 2 
"Abdul Raheem" 

Prevoius                                                 Next                                                 Home

No comments:

Post a Comment