Deși Redis este în memorie, poate persista date pe disc pentru ca datele să supraviețuiască redemarrilor. Oferă două mecanisme — RDB (snapshot-uri punctuale în timp) și AOF (jurnal append-only de operații) — cu compromisuri diferite între durabilitate și performanță.
RDB — snapshot-uri punctuale în timp
RDB takes SNAPSHOTS of the dataset at intervals, saving a compact binary file.
✓ Compact single-file backups; fast restarts (load the snapshot)
✓ Good for backups and disaster recovery; less impact on performance
✗ You can LOSE data since the last snapshot (e.g. last few minutes) if Redis crashes
→ Configure save points: e.g. "save after 900s if ≥1 change, 300s if ≥10 changes"
