ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timay <tonysc...@trustwave.com>
Subject Re: Near Cache Topoolgy change causes NearCache to always miss.
Date Thu, 19 Oct 2017 18:49:38 GMT
Hey Slava,

Here they are. 

  @Bean(name ="cache" )
    public IgniteCache<Object, Object> getCache() throws IOException {
   
        CacheConfiguration<K, V> config = new CacheConfiguration<>();
        config.setAtomicityMode(CacheAtomicityMode.ATOMIC);
        config.setCacheMode(CacheMode.REPLICATED);
        config.setCopyOnRead(false);
        config.setName("cache");
      
        NearCacheConfiguration<K, V> nearCfg = new
NearCacheConfiguration<>();
        nearCfg.setNearEvictionPolicy(new LruEvictionPolicy<>(25000));    

       return _igniteSpringBean.getOrCreateCache(config,nearCfg);
    }



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

Mime
View raw message