2
votes

I'm trying to create an instance of Hazelcast client but I can't Override the Cache Manager implementation from Spring. I don't want to use a hazelcast.xml (so, I'm in a spring boot application). There is a way to do it?

Follow my test:

@Bean
CacheManager cacheManager() {
    return new HazelcastCacheManager();
}

I've read many tutorials talking about this kind of implementation but this not work on Hazelcast v 3.8.1

The HazelcastCacheManager.java is an Interface not a class, so I cant initialize the interface like this... (...java basic).

Thanks.

1

1 Answers