Spring Boot - Caching
Given the following method annotated with
@Cacheable("books"), what happens when getBook(5) is called twice?@Cacheable("books")
public Book getBook(int id) {
System.out.println("Fetching book " + id);
return bookRepository.findById(id);
}