Redis is a high-performance Key-value database.
The emergence of Redis, to a large extent, compensates for the lack of memcached such keyvalue storage, in some cases can be a good complement to the relational database.
Redis is essentially a key-value database, but it also absorbs the advantages of some relational databases while keeping the key-value database simple and quick.
So that its location is between the relational database and the key-value database.
Redis can not only save strings type of data, but also can save lists type (ordered) and sets type (unordered) data, but also can complete sorting (sort) and other advanced functions, in the implementation of INCR,SETNX and other functions, the operation of the atomic, in addition, Features such as master-slave replication are also supported.
Disadvantages of memcached
Pure memory operation, data loss after shutdown save byte data, data type poor LRU algorithm results in data uncontrolled loss consistency processing simple application side is too thick, server-side too thin application scenario is limited, it is difficult to be considered as a complete database product
Features of RedisMemory + hard disk persistence save with a very rich data type, especially good at high speed processing data snapshot of the array class data with the master-slave replication
data types supported by Redis String Linked list collection ordered collection hash table
Small trial Sledgehammer
Installing Redis
Yum Install Redis
test if Redis is installed successfully
Python Package to install Redis
Easy_install Redis
Python link Database