Two independent historical startup cases recover different counter values: RDB-only returns the saved snapshot value 1; AOF-enabled returns the later value 2. Standalone RDB and an independent log are not automatically merged. Process termination was tested; power loss was not.

Two ways Redis keeps data safe

RDB and AOF preserve different representations of Redis state. Choosing between them starts with two questions: how much recent data may be lost, and how long recovery may take? A persistence setting alone answers neither. You need a recoverable artifact, an understood acknowledgment policy, and a restore procedure tested against actual values. ...

June 15, 2027 · 6 min · XB Field Notes