Because the previous contact is a relational database, for non-relational database always do not understand, take advantage of the opportunity to do the project, just a preliminary understanding of the Redis database
Redis is divided into storage divided into several stored data types
String type, hash type, list linked list type, set set type, sorted set type
The corresponding operation is not the same, so the most common work is:
Keys * Query all key values
Type of query key value
When a string is created, it stores the value of the Key-value.
Hash establishes the value pair of the table name-key-value, and the hash is particularly suitable for storing objects. Compared to Gencun each word of an object into a single string type. To save an object
Storing in hash types consumes less memory and makes it easier to access the entire object
List is set up to be linked list
Set is set up to be a collection, especially when we need to use the intersection, and set operation
The sorted set is created by adding a sequential attribute to the set, sorted by this property
Summarize here today, if you have time to add it later
A preliminary understanding of the Redis database