Hi, 

You are right, "evicts=0" is related to cache evictions for on-heap caching
[1]. It should be always 0 for you.
I tried your case (with the same configs as you) and page evictions work
fine with cache store enabled and indexed types. It seems that you have some
misconfiguration.

What are you trying to achieve by adding
.setIndexedTypes(keytag.runtimeClass, valtag.runtimeClass) to String-value
cache? and what is keytag.runtimeClass and valtag.runtimeClass?

Could you please try with DummyClass with valid indexes enabled as below:

/**
 * DummyClass
 */
public class DummyClass {
    /** Dummy string. */
    public String dummyStr;

    /** Dummy int. */
    @QuerySqlField(index = true)
    public Integer dummyInt;

    public DummyClass(Integer dummyInt) {
        this.dummyInt = dummyInt;
        this.dummyStr = StringUtils.rightPad(dummyInt.toString(), 1024,
'*');
    }
}

        CacheConfiguration<Integer, DummyClass> cacheCfg = new
CacheConfiguration<Integer, DummyClass>(CACHE_NAME)
            .setCacheMode(CacheMode.PARTITIONED)
            .setAtomicityMode(CacheAtomicityMode.ATOMIC)
           
.setExpiryPolicyFactory(CreatedExpiryPolicy.factoryOf(Duration.ETERNAL))
            .setDataRegionName(REG_NAME)
            .setStatisticsEnabled(true)
           
.setCacheStoreFactory(FactoryBuilder.factoryOf(DummyStoreFromAdapter.class))
            .setReadThrough(true)
            .setIndexedTypes(Integer.class, DummyClass.class);

Thanks,
Alexey

[1] https://apacheignite.readme.io/docs/evictions#section-java-heap-cache



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

Reply via email to