title: Configure Jedis timeout
body: <p>I'm having problems completing an <code>.hgetall()</code>, here's what I've tried:</p>
  
  <pre><code>Jedis jedis = new Jedis(REDIS_MASTER_NODE);
  jedis.connect();
  jedis.configSet("timeout", "30");
  
  Map&lt;String, String&gt; alreadyStored = jedis.hgetAll(redisTargetHash);
  </code></pre>
  
  <p>and here's what I get:</p>
  
  <pre><code>Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out
      at redis.clients.jedis.Protocol.process(Protocol.java:79)
      at redis.clients.jedis.Protocol.read(Protocol.java:131)
      at redis.clients.jedis.Connection.getBinaryMultiBulkReply(Connection.java:199)
      at redis.clients.jedis.Jedis.hgetAll(Jedis.java:851)
  </code></pre>
  
  <p>This solved the issue:</p>
  
  <pre><code>Jedis jedis = new Jedis(REDIS_MASTER_NODE, 6379, 1800);
  </code></pre>