Hitesh, Problem, that you described looks similar to the one described in the following ticket: https://issues.apache.org/jira/browse/IGNITE-1535 Please consider submiting a patch, if this functionality is critical for you.
Denis ср, 3 янв. 2018 г. в 13:51, Hitesh <hiteshnandwan...@gmail.com>: > 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/ >