title: How to get all the keys and values under the specific hash in redis?
body: <p>I have tried to read all the key and values inside the specific redis hash key with the below java code,</p>
  
  <pre><code>  import redis.clients.jedis.Jedis;
  
          public class RedisDBExport {
  
            public static void main(String[] args) throws Exception {
              Jedis jedis = new Jedis("hostname", portno);
              jedis.auth("password");
              System.out.println("Connected to Redis");
              System.out.println("Connected to Redis:"+jedis.hgetAll("bookstore:englishauthor:usa:2017-08-27:online:subscriberlist"));
            }
          }
  </code></pre>
  
  <p>I am getting the below output in output ,</p>
  
  <blockquote>
    <p>Connected to Redis  Connected to Redis:{}</p>
  </blockquote>
  
  <p>But in redis i could see the below entries are there,</p>
  
  <pre><code>row  key         value 
  
  1   Kumar       {"totalbooks":0,"openbooks":[{"total":0}]}
  2   Anuxx       {"totalbooks":1,"openbooks":[{"total":1}]}
  3   Manux       {"totalbooks":2,"openbooks":[{"total":2}]}
  4   Kumal       {"totalbooks":4,"openbooks":[{"total":4}]}
  5   Anuxy       {"totalbooks":3,"openbooks":[{"total":3}]}
  6   Manuy       {"totalbooks":5,"openbooks":[{"total":5}]}
  </code></pre>
  
  <p>Kindly suggest why i am getting this error,it will be helpful for me.</p>