Redis Learning Goals
I. The introduction of NoSQL
Second, Redis introduction
third, the application of Redis occasions
Iv. Learning goals for Redis
I. The introduction of NoSQL
Nosql (nosql=not only SQL), which means anti-SQL motion, refers to a non-relational database.
NoSQL is in the form of key-value storage, and traditional relational database is not the same, not necessarily follow the traditional database of some basic requirements, such as follow the SQL standard, Acid standard, table structure and so on, such database mainly has the following characteristics: non-relational, distributed, open source, The level can be expanded.
NoSQL has these features:
A, processing ultra-large amounts of data
B. Run on a cheap PC server cluster
C, smash the performance bottleneck
NoSQL Application Scenarios
1. High concurrency and read/write to Data
2. Efficient storage and access to massive amounts of data
3, high scalability and high availability of data
Second, Redis introduction
1, Redis is an open-source, advanced key-value storage System. It is commonly referred to as a data structure server because its keys can contain strings, hashes, lists, collections, and ordered collections. To ensure efficiency, the data is cached in memory, and it can periodically write updated data to disk or write modifications to the appended record file.
2. The difference between Redis and MySQL
|
Redis |
Mysql |
Whether you have a library concept |
Yes |
Yes |
Whether you have a table concept |
No |
Yes |
Do you have a field concept |
No |
Yes |
Third, Redis use occasions
1, take the latest n data operation
2, the leaderboard application, take top n operation
3, need to accurately set the expiration time of the application
4. Counter Application
5, pub/sub build real-time message system
6. Build the queue system
7. Cache
Iv. Learning goals for Redis
1. Understand the data types of Redis
2. Common commands for Redis
3. Advanced Applications for Redis
4. Simple example of Php+redis
The quieter become,the more you is able to hear!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Beckham _redis Learning Goals