The documentation for the condition attribute in the @Cacheable annotation has one more sentence:"Unlike condition, this expression is evaluated after the method has been called and can therefore refer to the result.", This sentence should be unless.