Spring @Cacheable annotation for same method in different service
问题 I have implemented the standard redis caching template in a Spring boot application as per the following article: What I have is two different services that get a list of objects: @RequestMapping("/admin/test/list") public String testCache() { List<Cocktail> cocktails = cocktailsService.list(); List<Ingredient> ingredients = ingredientsService.list(); return "index"; } Note: that the method name and signature is the same (i.e. list() ) but they both have different cache names as such: //