Spring Boot - Caching
Given the following Spring Boot code snippet, what will be the output when
getData() is called twice?@EnableCaching
@Service
public class DataService {
private int count = 0;
@Cacheable("dataCache")
public String getData() {
count++;
return "Call number: " + count;
}
}