public static class CouchbaseCacheManager.CouchbaseCacheManagerBuilder extends Object
public static CouchbaseCacheManager.CouchbaseCacheManagerBuilder fromConnectionFactory(CouchbaseClientFactory clientFactory)
CouchbaseCacheManager configuration.clientFactory - must not be null.CouchbaseCacheManager.CouchbaseCacheManagerBuilder.public static CouchbaseCacheManager.CouchbaseCacheManagerBuilder fromCacheWriter(CouchbaseCacheWriter cacheWriter)
CouchbaseCacheManager configuration.cacheWriter - must not be null.CouchbaseCacheManager.CouchbaseCacheManagerBuilder.public CouchbaseCacheManager.CouchbaseCacheManagerBuilder cacheDefaults(CouchbaseCacheConfiguration defaultCacheConfiguration)
CouchbaseCacheConfiguration applied to dynamically created CouchbaseCaches.defaultCacheConfiguration - must not be null.CouchbaseCacheManager.CouchbaseCacheManagerBuilder.public CouchbaseCacheManager.CouchbaseCacheManagerBuilder transactionAware()
CouchbaseCaches to synchronize cache put/evict operations with ongoing Spring-managed
transactions.CouchbaseCacheManager.CouchbaseCacheManagerBuilder.public CouchbaseCacheManager.CouchbaseCacheManagerBuilder initialCacheNames(Set<String> cacheNames)
Set of cache names to be pre initialized with current CouchbaseCacheConfiguration.
NOTE: This calls depends on cacheDefaults(CouchbaseCacheConfiguration) using whatever
default CouchbaseCacheConfiguration is present at the time of invoking this method.cacheNames - must not be null.CouchbaseCacheManager.CouchbaseCacheManagerBuilder.public CouchbaseCacheManager.CouchbaseCacheManagerBuilder withInitialCacheConfigurations(Map<String,CouchbaseCacheConfiguration> cacheConfigurations)
Map of cache name/CouchbaseCacheConfiguration pairs to be pre initialized.cacheConfigurations - must not be null.CouchbaseCacheManager.CouchbaseCacheManagerBuilder.public CouchbaseCacheManager.CouchbaseCacheManagerBuilder withCacheConfiguration(String cacheName, CouchbaseCacheConfiguration cacheConfiguration)
cacheName - cacheConfiguration - CouchbaseCacheManager.CouchbaseCacheManagerBuilder.public CouchbaseCacheManager.CouchbaseCacheManagerBuilder disableCreateOnMissingCache()
Cache creation for unconfigured caches.
CouchbaseCacheManager.getMissingCache(String) returns null for any unconfigured
Cache instead of a new CouchbaseCache instance. This allows eg.
CompositeCacheManager to chime in.
CouchbaseCacheManager.CouchbaseCacheManagerBuilder.public Set<String> getConfiguredCaches()
Set of cache names for which the builder holds configuration.Set holding the name of caches for which a configuration has been set.public Optional<CouchbaseCacheConfiguration> getCacheConfigurationFor(String cacheName)
CouchbaseCacheConfiguration for a given cache by its name.cacheName - must not be null.Optional.empty() if no CouchbaseCacheConfiguration set for the given cache name.public CouchbaseCacheManager build()
CouchbaseCacheManager with configuration options applied.CouchbaseCacheManager.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.