One 、 High performance , Fast
Redis Command execution is very fast , The official reading and writing performance can reach 10W / second . Why is it so fast ？ There are several factors ：
1. Data stored in memory , Direct connection to memory ;
2. There is a relatively low level C Language implementation , Closer to the operating system ;
3. The source code is exquisite , Just tens of thousands of lines of code , Simple and stable ;
4. Using the single thread model , No multithreading competition 、 Lock, etc .
Two 、 Rich data structure
Redis Unlike other in memory databases ,Redis With a wealth of data types , Such as a string 、 Hash 、 list 、 aggregate 、 Assemble in order, etc . Precisely because Redis Rich data types , So it can be used in many scenarios .
3、 ... and 、 Rich features
In addition to supporting rich data structures , It also supports the following advanced functions ：
1. Support key expiration function , Can be used to achieve timing cache ;
2. Support Release / subscribe function , Can be used to implement message queuing ;
3. Support transaction function , The transactional nature of multiple commands can be guaranteed ;
4. Support for pipeline function , Can batch process commands ;
5. Support Lua Script function ;
6. Support cluster fragmentation and data replication ;
7. Support memory data persistence hard disk function
Four 、 Rich clients
Official index ：http://www.redis.cn/clients.html
From the official list of clients, we can see that all kinds of languages can access Redis, Access includes all the mainstream development languages .
Currently in use Redis There are so many companies , There are many heavyweight companies at home and abroad . therefore , Now learn Redis It is the general trend , Learn from good examples Redis Can make a living in the future work to increase a strong means of competition .