• -------------------------------------------------------------
  • ====================================

标签:CachePut

Spring缓存注解@CachePut , @CacheEvict,@CacheConfig使用

@Cacheable@Cacheable 是用来声明方法是可缓存的。将结果存储到缓存中以便后续使用相同参数调用时不需执行实际的方法。直接从缓存中取值。最简单的格式需要制定缓存名称。 例如:@Cacheable("books")public Book findBook(ISBN isbn) {...}在上面的代码片段中,f……