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;
}
private final static ThreadLocal<LockableCacheStore> STORE = new ThreadLocal<LockableCacheStore>();