Skip to content

Commit

Permalink
Merge pull request #20710 from pawch/quarkus-cache-adoc-fix
Browse files Browse the repository at this point in the history
Update cache.adoc
  • Loading branch information
geoand authored Oct 13, 2021
2 parents 26b02a9 + ef38530 commit 88af4fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/main/asciidoc/cache.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,8 @@ act accordingly:
}
}
@CacheResult(name = "foo")
private Integer callRemote(int val) {
@CacheResult(cacheName = "foo")
public Integer callRemote(int val) {
try {
Integer val = remoteWebServer.getResult(val); //<2>
Expand Down Expand Up @@ -583,8 +583,8 @@ the exception bubble out of the called method and catch it at the caller side:
System.out.println("Got an exception");
}
@CacheResult(name = "foo")
private Integer callRemote(int val) throws Exception { // <2>
@CacheResult(cacheName = "foo")
public Integer callRemote(int val) throws Exception { // <2>
Integer val = remoteWebServer.getResult(val); //<3>
return val;
Expand Down

0 comments on commit 88af4fa

Please sign in to comment.