redis five types of detailed usage data

       We say that Redis Memcache relative to other caching products, there is a more obvious advantage is that Redis not only supports simple key-value data types, while also providing storage list, set, zset, hash and other data structures. This blog we will detail the use of these data types and the associated command passing on Redis system usage.

  Note: Redis commands are not case sensitive, but the key strictly case-sensitive;

                  redis are based on the form of key-value;

     redis not suitable for storing large data type, because it is single-threaded, big data will cause obstruction, a waste of time;

1.String data type (non-repetition)

 

 

 

 2.Hash data types

  is a collection of hash keys, the key is a string type and the value of the mapping table, key or the key, but a key-value pair (key-value). Analogous to Java inside the Map <String, Map <String, Object >> collection.

 

 

3, list data type

list file, which is a simple list of strings, sort insertion order, you can add an element to the head of the list (left) or a tail portion (right side), which is actually a bottom list.

 

 

4, set the data type

Redis string type of set is an unordered collection.

 

 

5, zset data type

zset (sorted set ordered set), and the above set of data types, string is the set of types of elements, but it is ordered.

6, system-related commands

7, key related commands

 

 

 

Guess you like

Origin www.cnblogs.com/lys-lyy/p/11610331.html