Hi Alex - Here is the cache configuration for the cache
CacheConfiguration<Long, byte[]> cacheConfig = new
CacheConfiguration<>();
cacheConfig.setCacheMode(CacheMode.PARTITIONED);
cacheConfig.setRebalanceMode(CacheRebalanceMode.ASYNC);
cacheConfig.setRebalanceDelay(rebalanceDelay);
cacheConfig.setName("eventCache-" + tenantRunId + "-" +
tenantId);
cacheConfig.setBackups(1);
cacheConfig.setAtomicityMode(CacheAtomicityMode.ATOMIC);
cacheConfig.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);
IgniteCache<Long, byte[]> cache =
IgniteContextWrapper.getInstance().getEngine()
.getOrCreateCache(cacheConfig);
Here is how i am looking at the size
logger.info("Events already persisted into store for Tenant : " + tenantId
+ " are "
+
cache.sizeLong(CachePeekMode.PRIMARY));
Thanx and Regards,
KR Kumar
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/