|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2021 the original author or authors. |
|
|
|
|
* Copyright 2002-2022 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -123,8 +123,8 @@ public @interface Cacheable {
@@ -123,8 +123,8 @@ public @interface Cacheable {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Spring Expression Language (SpEL) expression used for making the method |
|
|
|
|
* caching conditional. If condition is evaluated to {@code true}, result |
|
|
|
|
* is cached. |
|
|
|
|
* caching conditional. Cache the result if the condition evaluates to |
|
|
|
|
* {@code true}. |
|
|
|
|
* <p>Default is {@code ""}, meaning the method result is always cached. |
|
|
|
|
* <p>The SpEL expression evaluates against a dedicated context that provides the |
|
|
|
|
* following meta-data: |
|
|
|
@ -143,6 +143,7 @@ public @interface Cacheable {
@@ -143,6 +143,7 @@ public @interface Cacheable {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Spring Expression Language (SpEL) expression used to veto method caching. |
|
|
|
|
* Veto caching the result if the condition evaluates to {@code true}. |
|
|
|
|
* <p>Unlike {@link #condition}, this expression is evaluated after the method |
|
|
|
|
* has been called and can therefore refer to the {@code result}. |
|
|
|
|
* <p>Default is {@code ""}, meaning that caching is never vetoed. |
|
|
|
|