title: how to solve read timeout on redis?
body: <p>I'm the new to Redis. In my case, there is a project A insert data to redis maybe 10000 records per second. And I have project B to read data from redis to mongodb in every 5 minutes.By the way , both project is coding by java.</p>
  
  <p>Project A will work normally, but project B will throw read timeout exception. It due to Project B need to get all keys of redis that maybe very large about 4 millions.So I use command:</p>
  
  <pre><code>keys *
  </code></pre>
  
  <p>and it will read timeout. By the way, I also try the command about <code>scan</code>, but it too slow.I want to ask how to set the configure about timeout? maybe I need to </p>
  
  <p><code>timeout = 5 minutes</code></p>
  
  <p>How to do it? Have any better solve to my this case?</p>