File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
spring-geode-docs/src/docs/asciidoc/guides Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -360,12 +360,12 @@ This custom `KeyGenerator` was applied in the caching annotations of the service
360360[source,java]
361361----
362362@Service
363- class CalculatorService ... {
363+ class CalculatorService {
364364
365- @Cacheable(... keyGenerator="resultKeyGenerator")
366- public int factorial(int number) { .. }
365+ @Cacheable(keyGenerator="resultKeyGenerator")
366+ public int factorial(int number) { }
367367
368- ...
368+ // ...
369369}
370370----
371371
@@ -387,13 +387,13 @@ in the `@Cacheable annotation on the individual service methods:
387387[source,java]
388388----
389389@Service
390- class CalculatorService ... {
390+ class CalculatorService {
391391
392- @Cacheable(name = "Factorials" ... )
393- public int factorial(int number) { .. }
392+ @Cacheable(name = "Factorials")
393+ public int factorial(int number) { }
394394
395- @Cacheable(name = "SquareRoots" ... )
396- public int sqrt(int number) { .. }
395+ @Cacheable(name = "SquareRoots")
396+ public int sqrt(int number) { }
397397
398398}
399399----
You can’t perform that action at this time.
0 commit comments