যদিও Redis ইন-মেমোরি, এটি ডিস্কে ডেটা স্থায়ী করতে পারে যাতে ডেটা পুনরায় চালু করার পরেও টিকে থাকে। এটি দুটি প্রক্রিয়া প্রদান করে — RDB (সময়ের একটি বিন্দুতে স্ন্যাপশট) এবং AOF (অপারেশনগুলির শুধুমাত্র যোগ করার লগ) — বিভিন্ন স্থায়িত্ব/কর্মক্ষমতা ট্রেড-অফ সহ।
RDB — সময়ের একটি বিন্দুতে স্ন্যাপশট
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"
