title: What's the best strategy to sync Redis data to MySQL?
body: <ol>
  <li>The use case is to use Redis to be local cache of MySQL</li>
  <li>The data format in MySQL is: a single primary key and several other fields. There will not be queries cross table of db</li>
  <li>Redis key is primary key in MySQL, and value is hash containing other fields in MySQL</li>
  <li>When power off, less than one minute data lose is acceptable.</li>
  </ol>
  
  <p>My solution is:</p>
  
  <ol> 
  <li>Redis writes AOF file, some process will monitor this file and sync the updated datas to MySQL</li>
  <li>Hack Redis to write AOF in several files, just like MySQL binlog</li>
  <li>The data interface will only read and write through Redis</li>
  </ol>
  
  <p>Is this solution OK? <br/>
  And what's the best strategy to do this job?</p>