Question: Is Redis persistent?


Yes. Redis can persist. Redis is an open source, in-memory data structure store used as a database, cache, and message broker. Persistence means writing of data to durable storage, such as a solid-state disk (SSD). Redis provides different ways of persistence options. These include:

  • RDB (Redis Database Backup): RDB persistence performs point-in-time snapshots of your dataset at specified intervals. This is a very compact single-file point-in-time representation of your Redis data. RDB files are perfect for backups.

  • AOF (Append Only File): AOF persistence logs every write operation received by the server. AOF Redis is much more durable. AOF contains a log of all the operations one after the other in an easy to understand and parse format. You can even easily export an AOF file.

  • RDB + AOF: You can also combine both AOF and RDB in the same instance. In general you should use both persistence methods if you want a higher degree of data safety.

Was this content helpful?

Start building today

Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.