private static ConfigurationBuilder config(boolean passivation, int threads) {
ConfigurationBuilder config = new ConfigurationBuilder();
config.expiration().wakeUpInterval(100);
config.eviction().maxEntries(1).strategy(EvictionStrategy.LRU);
CacheStoreConfigurationBuilder store = config.loaders().passivation(passivation).addStore().cacheStore(new LockableCacheStore());
if (USE_ASYNC_STORE)
store.async().enable().threadPoolSize(threads);
return config;
}