Spring Boot - Caching
Consider this method in a Spring Boot service:
@CacheEvict(cacheNames = "products", key = "#id")
public void deleteProduct(Long id) {
productRepository.deleteById(id);
}
What happens when deleteProduct(5L) is called?