【发布时间】:2015-06-29 12:03:30
【问题描述】:
如果我有一个标记为@Async 和@Cacheable 的方法,那么在null 工作时不缓存结果的条件是否有效(考虑到它返回一个Future)?
@Async
@Cacheable(unless = "#result == null")
public ListenableFuture<ContentSet> doSomething(){}
【问题讨论】:
标签: spring spring-boot spring-cache