જોકે Redis in-memory છે, તે ડિસ્ક પર ડેટા સંગ્રહ કરી શકે છે જેથી ડેટા રીસ્ટાર્ટ સર્વાઇવ કરે. તે બે મેકેનિઝમ આપે છે — RDB (point-in-time snapshots) અને AOF (append-only log of operations) — જેમાં વિવિધ durability/performance ટ્રેડ-ઓફ્સ છે.
RDB — point-in-time snapshots
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"
