Skip to content

Commit d05e792

Browse files
committed
Clarify spring.cache.type=hazelcast in the documentation
Closes gh-33245
1 parent fc9c036 commit d05e792

File tree

1 file changed

+7
-4
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/asciidoc/io

1 file changed

+7
-4
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/io/caching.adoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,20 @@ An alternate configuration file can be provided as well, as shown in the followi
128128
config: "classpath:config/another-config.xml"
129129
----
130130

131-
132-
133131
[[io.caching.provider.hazelcast]]
134132
==== Hazelcast
135-
Spring Boot has <<io#io.hazelcast,general support for Hazelcast>>.
136-
If a `HazelcastInstance` has been auto-configured, it is automatically wrapped in a `CacheManager`.
137133

134+
Spring Boot has <<io#io.hazelcast,general support for Hazelcast>>.
135+
If a `HazelcastInstance` has been auto-configured and `com.hazelcast:hazelcast-spring` is on the classpath, it is automatically wrapped in a `CacheManager`.
138136

137+
NOTE: Hazelcast can be used as a JCache compliant cache or as a Spring `CacheManager` compliant cache.
138+
When setting configprop:spring.cache.type[] to `hazelcast`, Spring Boot will use the `CacheManager` based implementation.
139+
If you want to use Hazelcast as a JCache compliant cache, set configprop:spring.cache.type[] to `jcache`.
140+
If you have multiple JCache compliant cache providers and want to force the use of Hazelcast, you have to <<io#io.caching.provider.jcache,explicitly set the JCache provider>>.
139141

140142
[[io.caching.provider.infinispan]]
141143
==== Infinispan
144+
142145
https://infinispan.org/[Infinispan] has no default configuration file location, so it must be specified explicitly.
143146
Otherwise, the default bootstrap is used.
144147

0 commit comments

Comments
 (0)