Redis-1. Fundamentals Data Types

Description: Key-value memory non-relational database, C language

tips: Several important points fast Redis:
1. stored key-value data structure
2. The data stored in the memory
3. When the data manipulation is single-threaded, cpu avoid frequent context switching, using a multiplexer IO model

type of data

1. string string
string content is binary safe, means that we can put numbers, text, images, video, and so assign this value

Note: 1. Key name is not too long, affect the efficiency 2. The maximum length 512M 3. keys can be used IT: increase the readability of the book such an approach

2. list list of
values are ordered can be repeated

Note: 1. The list can be used to chat, blog comments, etc., without having to adjust the string order, we need to respond quickly to the scene

3. hash hash
hash adapted to store the object key: person value: (name: Joe Smith age: 18) hmset person name Joe Smith age 18

Note: 1. Content key must be a string value (e.g., name, age value corresponding value) may be a numeric string

4. set set
value is not repeated, disordered

5. zset ordered set
structure: key score value

6. bitmap bitmap
is the bit string type defined on a set of operations for

7. HyperLogLog probabilistic data structure
is a probabilistic data structure, the data for the data set of statistical uniquely

8. Geospatial geospatial
stored latitude, longitude, name, location and other information geospatial

发布了55 篇原创文章 · 获赞 0 · 访问量 1863

Guess you like

Origin blog.csdn.net/qq_40911404/article/details/104735704