Link to this article: http://blog.csdn.net/u012150179/article/details/41077851i. redis
Redis is an in-memory database that persists on disk. The data model is key-value, but cannot different kind of values are supported: strings, lists, sets, sorted sets, hashes
Http://redis.io
It is called remote dictionary server. There are also many companies in China.
The keywords can be summarized:
1. Open Source
And is driven by actual applications.
2. Key-Value
This kV feature distinguishes it from a relational database. This is also a key factor in the popularity of redis.
3. Memory Database
Storing data in the memory is the foundation of redis performance (mainly for access speed) over hard disk databases. Persistent operations are also supported to save data for a long time.
Ii. redis features
1. Rich data types and corresponding operations. Each data type has a specific application scenario.
2. High Performance.
3. Rich functions. The advanced features can meet database usage requirements.
Iii. redis data structure includes string/HASH/LIST/set/zset. For the usage scenarios of each structure, see the article redis weapons.
The hash feature is that multiple filed storage of a single key can be implemented based on the string; the list is not to mention, it is the feature of a two-way linked list. Set is a set. The difference between set and list is embodied in the order and uniqueness of values. The operation is closer to the concept of set and provides intersection and union. Zset has one more score item than set and uses it to sort values.
Iv. advanced features of redis
1. Transactions.A set of commands.
2. survival time.Can be used for caching.
3. sort.
4. task queue.
5. MPS queue.
5. The redis client can view clients in various languages on the redis official website. The so-called client is to perform operations on redis through corresponding language interfaces. I use python. redis-Py is officially recommended and can be installed through PIP install redis-py.
6. redis Data Summary here provides several real-time update summary sites.
The first is redis's repository Wiki (https://github.com/antirez/redis/wiki) on GitHub, which provides some links and you will find some links in Chinese. This phenomenon also exists in scrapy's wiki. You can find the number of users in China.
The second is the redis Chinese website.
Redis Study Notes