Redis NoSQL database is based on key-value pairs, to provide the main strings, lists, hash, set, an ordered set of five kinds of data structures.
Provides key expiration functionality provides publish and subscribe capabilities to implement messaging system
Support for Lua scripting capabilities, you can use Lua to create a new command redis
It provides a simple transaction capabilities, to ensure transaction characteristics to a certain extent.
Provide pipelining functions, so that the client can order a number of one-time passed Redis, reduce network overhead
Persistence: the data in memory is not secure, power down or malfunction,
Important data may be lost, so persistence Redis provides two ways: RDB and AOF,
Either use two strategies to save memory data to the hard drive to ensure persistence.
Master-slave replication:
From the master server, copy
High availability and distributed:
Redis 2.8 from formal offer high availability achieve Redis Sentinel, it is possible to achieve Redis nodes
Fault detection and fault automatically transferred. 3.0 officially provide a distributed implementation Redis Cluster.
Redis usage scenarios
1. ranking systems, such as heat according to the ranking of the rankings
2. counter applications such as video site has several players, the electricity supplier site Views, in order to ensure
Real-time data, every player and browser will be added 1.
3. The message queuing system