【发布时间】:2013-12-31 08:48:03
【问题描述】:
这可能很简单,但我想知道我是否可以通过以下一种方法同时调用@Cacheable 和@CacheEvict:
@Cacheable(value = "empListCache")
@CacheEvict(value = "empListCache", allEntries = true)
public List<Emply> findAllEmplys() throws SomeException
上面的代码是在每次调用方法时驱逐empListCache还是只在缓存满时才被驱逐?
谢谢。
【问题讨论】:
标签: caching ehcache spring-annotations spring-cache