This is a simple recipe for turning on AOF persistence-valued data integrity over performance. In many cases, data integrity isn't absolutely critical, and you can trade a little integrity for a significant performance gain.
redis-cli config set appendfsync everysec
When we configured Redis for maximum data durability in the earlier recipe, we set
appendfsync always. That tells Redis that every time it writes something to the AOF,it should immediately tell ...