Fix syntax error (misspelled class name) in a code snippet in the Inline Caching Sample Guide.
This commit is contained in:
@@ -360,12 +360,12 @@ This custom `KeyGenerator` was applied in the caching annotations of the service
|
||||
[source,java]
|
||||
----
|
||||
@Service
|
||||
class CalculatorService ... {
|
||||
class CalculatorService {
|
||||
|
||||
@Cacheable(... keyGenerator="resultKeyGenerator")
|
||||
public int factorial(int number) { .. }
|
||||
@Cacheable(keyGenerator="resultKeyGenerator")
|
||||
public int factorial(int number) { }
|
||||
|
||||
...
|
||||
// ...
|
||||
}
|
||||
----
|
||||
|
||||
@@ -387,13 +387,13 @@ in the `@Cacheable annotation on the individual service methods:
|
||||
[source,java]
|
||||
----
|
||||
@Service
|
||||
class CalculatorService ... {
|
||||
class CalculatorService {
|
||||
|
||||
@Cacheable(name = "Factorials" ...)
|
||||
public int factorial(int number) { .. }
|
||||
@Cacheable(name = "Factorials")
|
||||
public int factorial(int number) { }
|
||||
|
||||
@Cacheable(name = "SquareRoots" ...)
|
||||
public int sqrt(int number) { .. }
|
||||
@Cacheable(name = "SquareRoots")
|
||||
public int sqrt(int number) { }
|
||||
|
||||
}
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user