As we described in the previous recipe, for an in-memory data store such as Redis, enabling persistence features is the best defense against data loss. One obvious way to implement persistence is to take a snapshot against the memory where the data is stored from time to time. That is basically the way RDB works in Redis.
In this recipe, we will take a look at how to perform and configure the RDB persistence feature and learn more about the process of taking the snapshot.