actions = new DemoActions(infinispanDirectory, cache);
}
public static void main(String[] args) throws IOException {
DefaultCacheManager cacheManager = new DefaultCacheManager("config-samples/lucene-demo-cache-config.xml");
cacheManager.start();
try {
Cache<?, ?> cache = cacheManager.getCache();
Directory directory = DirectoryBuilder
.newDirectoryInstance(cache, cache, cache, "index-name")
.create();