@Configuration @ConditionalOnClass(value={com.couchbase.client.java.Bucket.class,com.couchbase.client.spring.cache.CouchbaseCacheManager.class}) @ConditionalOnMissingBean(value=org.springframework.cache.CacheManager.class) @ConditionalOnSingleCandidate(value=com.couchbase.client.java.Bucket.class) @Conditional(value=org.springframework.boot.autoconfigure.cache.CacheCondition.class) public class CouchbaseCacheConfiguration extends Object
Constructor and Description |
---|
CouchbaseCacheConfiguration(CacheProperties cacheProperties,
CacheManagerCustomizers customizers,
com.couchbase.client.java.Bucket bucket) |
Modifier and Type | Method and Description |
---|---|
com.couchbase.client.spring.cache.CouchbaseCacheManager |
cacheManager() |
public CouchbaseCacheConfiguration(CacheProperties cacheProperties, CacheManagerCustomizers customizers, com.couchbase.client.java.Bucket bucket)
@Bean public com.couchbase.client.spring.cache.CouchbaseCacheManager cacheManager()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.