Redis advanced data structures: Five, hash object

Outline

Hash object can be ziplist or Hashtable (ht)
ht say, ziplist how to save key-value pairs, the object is to put the key into the tail, then the value of the object into the tail, so that the two brothers will always be next. And always at the latest at the end of the team added.
ziplist conditions: the
string length of all keys and key values are less than 64 bytes of
key 512 is less than the number of
conditions of the hashtable:
None of the above satisfied

The above two values of the parameters may be changed by
the hash-value-max-ziplist
the hash-max-entries It-ziplist

Some commands

command effect
HSET Save key for
hget Gets the value according to the key
HEXISTS The key value pairs is determined whether there
HDEL According to key delete nodes
SELECT The number of keys
HGETALL Get all key-value pairs

Guess you like

Origin www.cnblogs.com/june777/p/11911376.html