Skip to content

Commit 1df8133

Browse files
Anders D. Johnsonsnicoll
authored andcommitted
Fix condition vs. conditional typo in documenation
Issue: SPR-12273 (cherry picked from commit bc0e59f)
1 parent 43d4018 commit 1df8133

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/asciidoc/index.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46288,7 +46288,7 @@ properties or even an arbitrary (static) method.
4628846288
===== Conditional caching
4628946289
Sometimes, a method might not be suitable for caching all the time (for example, it
4629046290
might depend on the given arguments). The cache annotations support such functionality
46291-
through the `conditional` parameter which takes a `SpEL` expression that is evaluated to
46291+
through the `condition` parameter which takes a `SpEL` expression that is evaluated to
4629246292
either `true` or `false`. If `true`, the method is cached - if not, it behaves as if the
4629346293
method is not cached, that is executed every since time no matter what values are in the
4629446294
cache or what arguments are used. A quick example - the following method will be cached
@@ -46301,8 +46301,8 @@ only if the argument `name` has a length shorter than 32:
4630146301
public Book findBook(String name)
4630246302
----
4630346303

46304-
In addition the `conditional` parameter, the `unless` parameter can be used to veto the
46305-
adding of a value to the cache. Unlike `conditional`, `unless` expressions are evaluated
46304+
In addition the `condition` parameter, the `unless` parameter can be used to veto the
46305+
adding of a value to the cache. Unlike `condition`, `unless` expressions are evaluated
4630646306
__after__ the method has been called. Expanding on the previous example - perhaps we
4630746307
only want to cache paperback books:
4630846308

0 commit comments

Comments
 (0)