I want to use Cacheable Annotation to cache Spring.
I think there should be several conditions.
@Cacheable(value = "item", condition = "#filter.size == null")
It works fine with
@Cacheable(value = "item", condition = "#filter.size == null, #filter.color == null")
I don't think that's the moveYo
@Cacheable(value = "item", condition = "#filter.size == null", "#filter.color == null")
Enter your code here
I don't think this is it either. I'm curious.
spring java caching cacheable
Since condition of @CacheableAnnotation is a SpEL (Spring Expression Language) expression, condition="#filter.size==null and #filter.color==null"
or condition="#filter.size==null".
Note:
© 2024 OneMinuteCode. All rights reserved.