redis hash type

hash hash Type
Description: {HKEY: {field1: Field2 V1: V2}}
1. a set of hash keys hset hkey field (attribute) value
  HSET User name Jiang
2. a hash key, a plurality of values hmset key field1 (properties) value2 field2 (attributes) value2
  hmset User name Jiang Age 18 is 180 [High
3. acquisition
  acquires all the properties of a hash key hkeys hkey corresponding
  get property value corresponding hget hkey field (hget user name)
  acquires a value corresponding to a plurality of attributes hmget hkey field1 field2 field3 ...
  obtain all attribute values corresponding HKEY hvals
4. remove
delete the entire hash: del hkey
delete (s) a property: hdel hkey field ..

Guess you like

Origin www.cnblogs.com/jum-bolg/p/11306476.html