Skip to content

Commit 2b9c527

Browse files
committed
Fixed ambiguous sentence in conditional cache documentation
Issue: SPR-14399
1 parent 14ab980 commit 2b9c527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reference/docbook/cache.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public Book findBook(ISBN isbn, boolean checkWarehouse, boolean includeUsed)</pr
147147

148148
<para>Sometimes, a method might not be suitable for caching all the time (for example, it might depend on the given arguments). The cache annotations support such functionality
149149
through the <literal>conditional</literal> parameter which takes a <literal>SpEL</literal> expression that is evaluated to either <literal>true</literal> or <literal>false</literal>.
150-
If <literal>true</literal>, the method is cached - if not, it behaves as if the method is not cached, that is executed every since time no matter what values are in the cache or what
150+
If <literal>true</literal>, the method is cached - if not, it behaves as if the method is not cached, that is executed every time no matter what values are in the cache or what
151151
arguments are used. A quick example - the following method will be cached, only if the argument <literal>name</literal> has a length shorter then 32:</para>
152152

153153
<programlisting language="java"><![CDATA[@Cacheable(value="book", condition="#name.length < 32")

0 commit comments

Comments
 (0)