title: Redis and mysql database
body: <p>I'm currently using Redis in my webProject (predis).
  I'm using Redis as Cache server and when I get empty results from redis I would like to look into my MySQL database and store that result into redis.</p>
  <p>Also, how would I dump the redis into MySQL to make sure MySQL has the up-to-date content? My plan is to dump redis into MySQL so if the redis is empty it will look in MySQL for the details.</p>
  <p>How would I proceed to do this?
  Should I do one or two?</p>
  <p>After editing/inserting into Redis, do the same to MySQL</p>
  <p>Redis -&gt; dump to MySQL -&gt; get from MySQL if empty.</p>