Enable or disable AOF
RedisPersistenceCommand
CONFIG SET appendonly yesWhat it does
Enables (yes) or disables (no) AOF persistence at runtime.
When to use it
When you want to turn AOF persistence on or off without a restart.
Caution
Disabling AOF weakens the durability guarantee; when you enable it, the initial AOF rewrite creates IO load.