Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Redis Essentials

You're reading from   Redis Essentials Harness the power of Redis to integrate and manage your projects efficiently

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher Packt
ISBN-13 9781784392451
Length 230 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Persistence


Since the beginning of this book, we have talked a lot about storing your data in memory using Redis. Memory is transient. Therefore, if a Redis instance is shut down, crashes, or needs to be rebooted, all of the stored data will be lost. To solve this problem, Redis provides two mechanisms to deal with persistence: Redis Database (RDB) and Append-only File (AOF). Both of these mechanisms can be used separately or simultaneously in the same Redis instance.

The persistence approach used by Redis has generated a lot of discussion in the community. On March 26, 2012, Salvatore Sanfilippo wrote a great blog post demystifying persistence in Redis, since persistence was the most misunderstood feature of Redis.

Note

Recommended reading

Redis persistence demystified at http://oldblog.antirez.com/post/redis-persistence-demystified.html.

In this section, we will cover the advantages and disadvantages of each approach as well as how each can be enabled.

RDB (Redis Database)

A .rdb file is a...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime