Configuration config = new Configuration();
config.setUseRegionBasedMarshalling(useRegionBased);
config.setInactiveOnStartup(useRegionBased);
Cache cache = new UnitTestCacheFactory<Object, Object>().createCache(config, false, getClass());
EvictionConfig ec = new EvictionConfig();
ec.setWakeupInterval(1000000); // a long time; really disabled
EvictionRegionConfig erc = new EvictionRegionConfig();
erc.setRegionFqn(Fqn.ROOT);
LRUAlgorithmConfig lruAlgorithmConfig = new LRUAlgorithmConfig();
lruAlgorithmConfig.setMaxNodes(1000);
lruAlgorithmConfig.setTimeToLive(1000000);
erc.setEvictionAlgorithmConfig(lruAlgorithmConfig);
ec.addEvictionRegionConfig(erc);
config.setEvictionConfig(ec);
CacheLoaderConfig clc = new CacheLoaderConfig();
clc.setPassivation(true);
clc.setShared(false);