Reputation: 55555
If I have a method marked as @Async
as well as @Cacheable
, will the condition of not caching the result when null work (considering it is returning a Future
) ?
@Async
@Cacheable(unless = "#result == null")
public ListenableFuture<ContentSet> doSomething(){}
Upvotes: 2
Views: 1000