title: Jedis pool configuration for get and set/flush operations
body: <p>I am new to redis and  using Jedis client in my application. I have gone through couple of threads and did not find the conclusive answers. </p>
  
  <p>I have 2 questions where I need clarity.</p>
  
  <ol>
  <li><p>For my production use I want to set separate timeout for jedis get operations and set operations. For all set operation I want to set timeout to 2000ms and for get 100ms. I have implemented below configuration.</p>
  
  <pre><code>JedisPoolConfig poolConfig = new JedisPoolConfig();
  poolConfig.setMaxIdle(30);
  poolConfig.setMinIdle(10);
  poolConfig.setMaxWaitMillis(2000);
  jedisPool = new JedisPool(poolConfig, RedisDBUrl, port, 100);
  </code></pre>
  
  <p>Let me know if above configuration will do the job. I am setting read timeout to 100ms and maxwait to 2000ms.</p></li>
  <li><p>Let me know if my understanding is correct.</p>
  
  <p>At times I get  JedisConnectionException: java.net.SocketTimeoutException: <strong>Read timed out</strong>  or sometimes <strong>connect timeout</strong>.</p>
  
  <p>Here connect time out is thrown when my application is not able to make connection to redis withing configured time? </p>
  
  <p>Secondly, read timeout comes when application is connected to redis but operations(get/set) are taking time or for some reason?</p>
  
  <p>Lastly, how do i configure timeout for read timeout and connect timeout?</p></li>
  </ol>