DATACOUCH-504 - Make couchbase cache config available.

Spring boot needs to be able to access the cache config on the
CouchbaseCache instance, so make it available.
This commit is contained in:
Michael Nitschinger
2020-03-09 07:11:58 +01:00
parent daf479b345
commit cf67ab44cc

View File

@@ -75,6 +75,13 @@ public class CouchbaseCache extends AbstractValueAdaptingCache {
return cacheWriter.get(cacheConfig.getCollectionName(), createCacheKey(key), cacheConfig.getValueTranscoder());
}
/**
* Returns the configuration for this {@link CouchbaseCache}.
*/
public CouchbaseCacheConfiguration getCacheConfiguration() {
return cacheConfig;
}
@Override
@SuppressWarnings("unchecked")
public synchronized <T> T get(final Object key, final Callable<T> valueLoader) {