Spring Boot - Caching
Given this method:
@CacheEvict(cacheNames = "orders", key = "#order.id")
public void cancelOrder(Order order) {
orderRepository.delete(order);
}
Why might the cache eviction not work as expected?