public static void getGnGtDetails() { Map<String, String> cfMap = new HashMap<String, String>(); Map<String, String> jdMap = jedisCluster.hgetAll(XC.GnJdKey); String tempKey; String tempURL; for (String cfKey : cfMap.keySet()) { for (String jdKey : jdMap.keySet()) { tempKey = cfKey + "_" + jdKey + "_" + XC.XCGnGt + "_lists"; System.out.println("tempKey " + tempKey); while ((tempURL = jedisCluster.lpop(tempKey)) != null) { matchDetails(tempURL, jdKey); } } } }