After 1.redis of cached data fills up with physical memory, Redis can persist some long unused (hit) data to the hard disk. While Redis periodically persists data to the hard disk, the cache data is still desirable after the server restarts. The persistence mechanism is divided into two kinds of snapshot and AOF.
Snapshot Working principle: is to store the data in memory first, and then when the data accumulated to achieve certain set of cutting value, it will trigger a dump operation, the change of data to write to the data file (RDB file) once.
AOF will be able to achieve full-length persistence, only need to open in the configuration file (default is no), appendonly Yes on aof, Redis every time you execute a modified data command, will add it to the AoF file, when the Redis restart, will read the aof file to "replay "To revert to the last moment before Redis was closed.
The 2.redis supports data storage in k/v format and also supports data storage in formats such as List,set,hash .
3.redis supports a master multiple from, or a master-one from the cluster. Support Master-slave data backup.
A summary of some uses of Redis