Hazelcast near-cache eviction doesn't work

73
January 22, 2017, at 7:27 PM

I'm using Hazelcast 3.7.4, and I have both lite and non-lite members.

On my lite members I'm setting near-cache as follows:

        NearCacheConfig nearCacheConfig = new NearCacheConfig(0, cacheSize, EvictionPolicy.LRU.name(), 0, true, InMemoryFormat.OBJECT);
        config.getMapConfig(mapName).setNearCacheConfig(nearCacheConfig);

I have configured entry listener on my lite member and could verify that it is called on change. Moreover, the old and new value content is correct.

But when I'm trying to get the value from the map I'm still getting the old value.

While debugging, I've tried to look at the map content and I could see the new value, but when I'm calling: map.get(key) the old value is returned.

READ ALSO
Trying to make a JFrame with a JPanel containing two JButtons

Trying to make a JFrame with a JPanel containing two JButtons

I am a beginner here and I am trying to make a GUI that will display two buttons, addCard and deleteCardHowever, the compiler is showing errors, and I cannot seem to find the error

81
Thymeleaf. Strange behavior of __#{}__ - preprocessing operator

Thymeleaf. Strange behavior of __#{}__ - preprocessing operator

converts to "asd ??suite_1?", but "??" signs is a strange side-effect which I can't get rid of

111
Java Generics? with identifier exception

Java Generics? with identifier exception

This is a code Snippet from an old examCan someone provide me the answer and tell me why

86