This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 0089c61f3b ISIS-2965: adds docs for @Cacheable in the
QueryResultsCache service
0089c61f3b is described below
commit 0089c61f3b1b76c06cec82393989de683aa8e475
Author: Dan Haywood <[email protected]>
AuthorDate: Sat Aug 20 11:35:44 2022 +0100
ISIS-2965: adds docs for @Cacheable in the QueryResultsCache service
---
.../hooks/QueryResultsCache_020-examples-and-usage.adoc | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/antora/components/refguide-index/modules/applib/pages/index/services/queryresultscache/hooks/QueryResultsCache_020-examples-and-usage.adoc
b/antora/components/refguide-index/modules/applib/pages/index/services/queryresultscache/hooks/QueryResultsCache_020-examples-and-usage.adoc
index b55079cd7c..e30ac562af 100644
---
a/antora/components/refguide-index/modules/applib/pages/index/services/queryresultscache/hooks/QueryResultsCache_020-examples-and-usage.adoc
+++
b/antora/components/refguide-index/modules/applib/pages/index/services/queryresultscache/hooks/QueryResultsCache_020-examples-and-usage.adoc
@@ -53,3 +53,7 @@ If however every order is for a different product, then no
benefit will be gaine
== Related Services
The xref:refguide:applib:index/services/scratchpad/Scratchpad.adoc[Scratchpad]
service is also intended for actions that are called many times, allowing
arbitrary information to be shared between them.
+
+Note that the scope of
xref:refguide:applib:index/services/queryresultscache/QueryResultsCache.adoc[]
is for a single interaction, so is short-lived.
+If you want longer-lived caching, then you may be able to use Spring's cache
support, such as `@Cacheable`.
+For more details, check out the relevant
link:https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#io.caching[Spring
Boot] and
link:https://docs.spring.io/spring-framework/docs/5.3.22/reference/html/integration.html#cache[Spring
Framework] documentation on the topic.