Get complete Map from Redis if a key contains a String
I am able to add and get a particular user object from Redis I am adding object like this: private static final String USER_PREFIX = ":USER:"; public void addUserToRedis(String serverName,User user) { redisTemplate.opsForHash().put(serverName + USER_PREFIX + user.getId(), Integer.toString(user.getId()),user); } If…