has been used beforeMemcached, but Memcached has a deadly thing is to lose all the data after the power outage, so turn to Redis. Redis is one of the most popular NoSQL systems today, and it is a key-value storage system. Similar to memcached, but largely compensates for the lack of memcached, which supports storing more value types, including string, list, set, Zset, and hash. These data types support Push/pop, Add/remove, and intersection sets and differences, and richer operations. Based on this, Redis supports sorting in a variety of different ways. Redis data is cached in the computer's memory and then periodically asynchronously saved to disk (this is known as "semi-persistent mode"), and each data change can be written to a append only file (AOF) (this is called "Full persistence mode").
There are two ways to persist Redis, the first of which isfilesnapshottingSnapshotThe default redis is to persist data to disk in the form of a snapshot (a binary file, Dump.rdb, this file name can be specified), but the snapshot also hasThe downside is power outages or anomalies.When you die, append-only can be so that all the data is not lost, But the performance of Redis will be worse, dump.rdb occupies a large amount of hard disk space is several times. So this depends on the individual needs to decide in that way!
It is very easy to install Redis under Linux, as described in the following steps (official website):
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz$ tar xzf redis-2.8.3.tar.gz$ cd redis-2.8.3$ make
2, after the completion of the compilation, enter the SRC directory, start the Redis service.
$ redis-server redis.conf
3. then test with the client to see if it started successfully .
$ redis-CLI
set jun Hello
get jun
" Hello "
Here Redis Basic is complete, other configuration and operation in the process of slowly groping it!
Linux installation Redis