@@ -27,7 +27,7 @@ package org.springframework.boot.autoconfigure.cache;
|
||||
public enum CacheType {
|
||||
|
||||
/**
|
||||
* Generic caching using 'Cache 'beans from the context.
|
||||
* Generic caching using 'Cache' beans from the context.
|
||||
*/
|
||||
GENERIC(GenericCacheConfiguration.class),
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ class HazelcastCacheConfiguration {
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if the Hazelcast configuration is available. This either kick in if a
|
||||
* Determines if the Hazelcast configuration is available. This either kicks in if a
|
||||
* default configuration has been found or if property referring to the file to use
|
||||
* has been set.
|
||||
*/
|
||||
|
||||
@@ -134,7 +134,7 @@ class JCacheCacheConfiguration {
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if JCache is available. This either kick in if a provider is available
|
||||
* Determine if JCache is available. This either kicks in if a provider is available
|
||||
* as defined per {@link JCacheProviderAvailableCondition} or if a {@link CacheManager}
|
||||
* has already been defined.
|
||||
*/
|
||||
@@ -154,7 +154,7 @@ class JCacheCacheConfiguration {
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if a JCache provider is available. This either kick in if a default
|
||||
* Determine if a JCache provider is available. This either kicks in if a default
|
||||
* {@link CachingProvider} has been found or if the property referring to the provider
|
||||
* to use has been set.
|
||||
*/
|
||||
|
||||
@@ -325,7 +325,7 @@ public class CacheAutoConfigurationTests {
|
||||
public void hazelcastCacheExplicit() {
|
||||
load(DefaultCacheConfiguration.class, "spring.cache.type=hazelcast");
|
||||
HazelcastCacheManager cacheManager = validateCacheManager(HazelcastCacheManager.class);
|
||||
// NOTE: the hazelcast implementation know about a cache in a lazy manner.
|
||||
// NOTE: the hazelcast implementation knows about a cache in a lazy manner.
|
||||
cacheManager.getCache("defaultCache");
|
||||
assertThat(cacheManager.getCacheNames(), containsInAnyOrder("defaultCache"));
|
||||
assertThat(cacheManager.getCacheNames(), hasSize(1));
|
||||
|
||||
Reference in New Issue
Block a user