Question: Is Redis persistent?
Answer
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?
Other Common Redis Questions (and Answers)
- What is the default port used by Redis?
- How to start Redis server?
- How fast is Redis?
- How to install Redis on Mac?
- How to check if Redis is running?
- How to restart Redis?
- Does Redis persist data?
- How to install Redis on Ubuntu?
- How to stop Redis server?
- How to see Redis version?
- Does Redis have tables?
- How long does Redis store data?
Free System Design on AWS E-Book
Download this early release of O'Reilly's latest cloud infrastructure e-book: System Design on AWS.
Switch & save up to 80%
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement. Instantly experience up to a 25X boost in performance and 80% reduction in cost