Here its my cache configuration,

CacheConfiguration<String, WebSocketClient> cacheCfg = new
CacheConfiguration(cacheName);
                        
                        cacheCfg.setOnheapCacheEnabled(true);
                        cacheCfg.setEvictionPolicy(new FifoEvictionPolicy<>(2));
                        
                       cacheCfg.setCacheMode(CacheMode.PARTITIONED); // Default.
                        
                        cacheCfg.setIndexedTypes(String.class, 
WebSocketClient.class);
                        
                        cacheCfg.setAtomicityMode(CacheAtomicityMode.ATOMIC);
                        
i have set max size 2 entries,when i am trying to put another entry its
showing eviction policy started ,but when i query its returning all 3
entries in the cache instead of recent two entries.
<http://apache-ignite-users.70518.x6.nabble.com/file/t1556/Capture.png> 



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to