I am using RedisTemplate in my spring boot application and I am able to read using singleKey.
String valueJson = (String) redisTemplate.opsForValue().get(setKey(someId));
I have now a List of "someId" like "List someIds" and I want to get the data of all Ids. Of course I can iterate on the list and hit redis with indivisual keys, but I dont want that, instead I want provide the whole list to get the response in one go.
Please help.
MGET,HMGETto read multiple keys (strings) or entries from a hash. Otherwise, like Thomas wrote, use pipelining to issue multiple commands and synchronize at the end.