Based on this question, I'm trying to switch to the version 3.5-EA of Hibernate.
Up to now I had a configuration like this:
CacheConfiguration<K, V> configuration = new CacheConfig<K, V>()
.setNearCacheConfig(new NearCacheConfig().setInMemoryFormat(InMemoryFormat.OBJECT))
.setExpiryPolicyFactory(createExpiryPolicyFactory(expiryDuration));
cache = cacheManager.createCache(cacheName, configuration);
But now the setNearCacheConfig
method is gone. There only exists a addNearCacheConfig
on the ClientCacheConfig
. But I don't have a ClientCacheConfig
.
I basically don't know where to put the NearCacheConfig
.
the configuration of the nearcache can be done on the client side. http://docs.hazelcast.org/docs/3.5/manual/html-single/hazelcast-documentation.html#hazelcast-java-client