Solo  当前访客:1 开始使用

@Cacheable 和 @CacheEvict

show code

    @Cacheable(value = "list", key = "#waterCaliberQuery.hashCode()", unless = "#result == null or #result.isEmpty()")
    @CacheEvict(value = "list", allEntries = true)

@Cacheable 放入缓存;条件、key

@CacheEvict 移除缓存,移除key

Spring EL 表达式 ; “#” 作为参数或者相应值


标题:@Cacheable 和 @CacheEvict
作者:temp12138
地址:https://solo.mfyzl.icu/articles/2024/06/14/1718346820430.html

标签:
新一篇: N/A 什么意思? 旧一篇: 0518-0614 见闻与经历