You can configure redis to flush to disk on write operations though you lose on performance.
https://redis.io/docs/management/persistence/
It's very slow, but if you really want to wait for fsync before replying, it can do that.
Thanks for the correction.