Redis Persistence Modes Cheat Sheet

RDB snapshots vs AOF

Last Updated: November 21, 2025

Focus Areas

Focus
Adjust snapshot intervals
Set AOF rewrite thresholds

Commands & Queries

redis-cli config set appendonly yes
Enable AOF
redis-cli bgsave
Force snapshot
redis-cli config get appendfsync
Check fsync strategy

Summary

Balanced persistence protects data without sacrificing speed.

💡 Pro Tip: Tune `appendfsync` and rewrite policies for predictable disk writes.
← Back to Databases & APIs | Browse all categories | View all cheat sheets