white knight

导航

 
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
</dependency>


@Cacheable(value = "value1", key = "#p0+#p1")
List<A> getAs(String param1, String param2){...}

@CacheEvict(value = {"value1"}, allEntries = true)
void updateA(String param3){...}


@SpringBootApplication
@EnableCaching
public class Application {

}
posted on 2018-04-27 16:03  white knight  阅读(139)  评论(0编辑  收藏  举报