redis persistence
What is persistence
redis all data remains in memory, updates to the data will be saved to disk asynchronously
Persistent way
1. Snapshot
A snapshot is a moment when a full backup of the data.
in:
- MySQL Dump
- Redis RDB
used.
2. Write log
Database updates do anything it will be recorded in the log, a time when data needs to be recovered, the operation only need to log in the re-run again, it will have complete data of a point sometime.
in:
- MySQL Binlog
- Hbase HLog
- Redis AOF
used.
Reproduced in: https: //www.jianshu.com/p/4aedfd4eed87