Skip to content

Commit c421e0a

Browse files
authored
Merge pull request #136 from hazelcast-guides/TomaszGaweda-patch-1
Minor tweaks to JCache tutorial [DEX-295]
2 parents c48f18b + a17aa81 commit c421e0a

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

docs/modules/ROOT/pages/caching-springboot-jcache.adoc

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
== Before you Begin
1515

16-
- JDK 1.8+
17-
- Apache Maven 3.2+
16+
- JDK 17+
17+
- Apache Maven 3.8+
1818

1919
== Spring Boot Application
2020

@@ -89,6 +89,7 @@ CLI::
8989
----
9090
# Install Hazelcast CLI as described at
9191
# https://github.com/hazelcast/hazelcast-command-line#installation
92+
# and then run:
9293
9394
wget https://repo1.maven.org/maven2/javax/cache/cache-api/1.1.1/cache-api-1.1.1.jar
9495
hz start -c src/main/resources/hazelcast.yaml -j cache-api-1.1.1.jar
@@ -142,19 +143,29 @@ Then, you can test the application by executing the following command.
142143

143144
[source,bash]
144145
----
145-
curl localhost:8080/books/12345
146+
curl -w '\nTotal: %{time_total}s\n' localhost:8080/books/12345
146147
----
147148

148149
You should see the following:
149150

150151
```
151152
Sample Book Name
153+
Total: 3.090784s
152154
```
153155

154-
The first time you execute this command, it should take some time to get the response. However, when you try it again, it should be instant. That means that the cache is used.
156+
The first time you execute this command, it should take some time to get the response. However, when you try it again, it should be instant:
157+
158+
[source,bash]
159+
----
160+
curl -w '\nTotal: %{time_total}s\n' localhost:8080/books/12345
161+
Sample Book Name
162+
Total: 0.009667s
163+
----
164+
165+
That means that the cache is used.
155166

156167
== Related Resources
157168

158169
If you want to learn more about the topics in this tutorial, see the following resources:
159170

160-
- xref:hazelcast:jcache:jcache.adoc[Hazelcast JCache]
171+
- xref:hazelcast:jcache:jcache.adoc[Hazelcast JCache]

0 commit comments

Comments
 (0)