From 3a61930bd08ff85175b356ebf6e7cbed53588a98 Mon Sep 17 00:00:00 2001 From: luvarqpp Date: Tue, 15 Mar 2022 16:17:33 +0100 Subject: [PATCH] Improve documentation of Cacheable See gh-28183 --- .../java/org/springframework/cache/annotation/Cacheable.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java b/spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java index e1d2700a4c4c..85965cbffa0a 100644 --- a/spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java +++ b/spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java @@ -123,7 +123,8 @@ /** * Spring Expression Language (SpEL) expression used for making the method - * caching conditional. + * caching conditional. If condition is evaluated to {@code true}, result + * is cached. *

Default is {@code ""}, meaning the method result is always cached. *

The SpEL expression evaluates against a dedicated context that provides the * following meta-data: