use of org.commonjava.maven.galley.cache.infinispan.SimpleCacheInstance in project galley by Commonjava.
the class RoutingCacheProviderWrapperTest method prepare.
@Before
public void prepare() throws Exception {
final File cacheDir = temp.newFolder();
partylineFac = new PartyLineCacheProviderFactory(cacheDir);
DefaultCacheManager cacheManager = new DefaultCacheManager();
SimpleCacheInstance<String, String> cacheInstance = new SimpleCacheInstance<>("test", cacheManager.getCache("simpleNfsCache"));
SimpleCacheInstance<String, ConcreteResource> testLocalFileCacheInstance = new SimpleCacheInstance<>("testLocalFileCache", cacheManager.getCache("simpleLocalFileCache"));
fastLocalFac = new FastLocalCacheProviderFactory(cacheDir, temp.newFolder(), cacheInstance, testLocalFileCacheInstance, Executors.newFixedThreadPool(5));
}
Aggregations