Uses of Class
org.springframework.data.couchbase.cache.CouchbaseCacheConfiguration
-
Uses of CouchbaseCacheConfiguration in org.springframework.data.couchbase.cache
Modifier and TypeMethodDescriptionCouchbaseCacheConfiguration.collection
(String collectionName) Set the collectinName to use.CouchbaseCacheConfiguration.computePrefixWith
(CacheKeyPrefix cacheKeyPrefix) Use the givenCacheKeyPrefix
to compute the prefix for the actual Couchbase key given the cache name as function input.static CouchbaseCacheConfiguration
CouchbaseCacheConfiguration.defaultCacheConfig()
CouchbaseCacheConfiguration.disableCachingNullValues()
Disable caching null values.CouchbaseCacheConfiguration.entryExpiry
(Duration expiry) Set the expiry to apply for cache entries.CouchbaseCache.getCacheConfiguration()
Returns the configuration for thisCouchbaseCache
.CouchbaseCacheConfiguration.prefixCacheNameWith
(String prefix) Prefix thecache name
with the given value.CouchbaseCacheConfiguration.valueTranscoder
(com.couchbase.client.java.codec.Transcoder valueTranscoder) Sets a custom transcoder to use for reads and writes.Modifier and TypeMethodDescriptionCouchbaseCacheManager.CouchbaseCacheManagerBuilder.getCacheConfigurationFor
(String cacheName) Get theCouchbaseCacheConfiguration
for a given cache by its name.Modifier and TypeMethodDescriptionCouchbaseCacheManager.CouchbaseCacheManagerBuilder.cacheDefaults
(CouchbaseCacheConfiguration defaultCacheConfiguration) Define a defaultCouchbaseCacheConfiguration
applied to dynamically createdCouchbaseCache
s.protected CouchbaseCache
CouchbaseCacheManager.createCouchbaseCache
(String name, CouchbaseCacheConfiguration cacheConfig) Configuration hook for creatingCouchbaseCache
with given name andcacheConfig
.CouchbaseCacheManager.CouchbaseCacheManagerBuilder.withCacheConfiguration
(String cacheName, CouchbaseCacheConfiguration cacheConfiguration) Modifier and TypeMethodDescriptionCouchbaseCacheManager.CouchbaseCacheManagerBuilder.withInitialCacheConfigurations
(Map<String, CouchbaseCacheConfiguration> cacheConfigurations) Append aMap
of cache name/CouchbaseCacheConfiguration
pairs to be pre initialized.ModifierConstructorDescriptionprotected
CouchbaseCache
(String name, CouchbaseCacheWriter cacheWriter, CouchbaseCacheConfiguration cacheConfig)