Skip to content

Instantly share code, notes, and snippets.

@tristantarrant
Last active February 2, 2018 08:27
Show Gist options
  • Select an option

  • Save tristantarrant/970ecc6c8233ccc2aeac3b10a12a950c to your computer and use it in GitHub Desktop.

Select an option

Save tristantarrant/970ecc6c8233ccc2aeac3b10a12a950c to your computer and use it in GitHub Desktop.
Infinispan Wildcard Configuration Template (JCache)
CachingProvider cachingProvider = Caching.getCachingProvider();
CacheManager cacheManager = cachingProvider.getCacheManager(
this.getClass().getResource("wildcard.xml").toURI(),
this.getClass().getClassLoader()
);
Cache<Object, Object> basiccache1 = cacheManager.createCache(
"basiccache1",
new MutableConfiguration<>()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment