I am trying to pass a list of keys to jedis and get their values in return.
mget operation does this but it does not return key value pair it gives all values as a list.
Is there any way we can know the key value pair in this query. OR it is confirmed the values returned in list are in same order as the keys.
List<String> lt =jedis.mget(mapArray);
int j = 0;
for( String key : mapArray) {
System.out.println(key+" : "+lt.get(j));
j++;
}
Thanks