From ef38530984a04a065eb1a630c40a186ec6d58e94 Mon Sep 17 00:00:00 2001 From: Dmitrii K <75976863+pawch@users.noreply.github.com> Date: Tue, 12 Oct 2021 21:27:27 +0200 Subject: [PATCH] Update cache.adoc Fixing minor issues in code examples --- docs/src/main/asciidoc/cache.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/main/asciidoc/cache.adoc b/docs/src/main/asciidoc/cache.adoc index 53127aa8a71ad..1311d95683ea4 100644 --- a/docs/src/main/asciidoc/cache.adoc +++ b/docs/src/main/asciidoc/cache.adoc @@ -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> @@ -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;