return TestCacheManagerFactory.createCacheManager(configuration);
}
private void enableTestJdbcStorage(Configuration configuration) throws Exception {
CacheStoreConfig fileStoreConfiguration = createCacheStoreConfig();
AsyncStoreConfig asyncStoreConfig = new AsyncStoreConfig();
asyncStoreConfig.setEnabled(true);
asyncStoreConfig.setThreadPoolSize(1);
fileStoreConfiguration.setAsyncStoreConfig(asyncStoreConfig);
CacheLoaderManagerConfig loaderManagerConfig = configuration.getCacheLoaderManagerConfig();
loaderManagerConfig.setPassivation(false);
loaderManagerConfig.setPreload(false);
loaderManagerConfig.setShared(true);