title: How to automatically flush appendonly.aof when using RDB+AOF mixed persistency in Redis?
body: <p>I'm trying to use mixed persistency (RDB + AOF as tail) in Redis with the following configuration:</p>
  
  <p><code>aof-use-rdb-preamble yes
   appendonly yes
   save 10 1 # &lt;-- just to speed the tests
  </code></p>
  
  <p>I assume from <a href="https://github.com/antirez/redis/blob/4.0/redis.conf#L746-L782" rel="nofollow noreferrer">https://github.com/antirez/redis/blob/4.0/redis.conf#L746-L782</a> that when Redis is restarted, it loads the seed data from [RDB file][AOF tail].</p>
  
  <p>I would like that every time the RDB is written, the AOF file would be flushed in order to keep in it only the tail (the latest updates since the last RDB saving).</p>
  
  <p>Is this possible through some configuration?</p>