Now technically, by default, Redis will persist to disk, but any number of reasons might cause it to stop working:
Redis installed manually with custom config file that turns persistence off
Not enough memory (!!)
Dump file set to or located in file/directory that is non-writable
Either way, Redis will output warnings on startup if it cannot write to the dump.rdb file, so check Redis logs!