Skip to content

Instantly share code, notes, and snippets.

@bobmcwhirter
Created December 8, 2015 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobmcwhirter/f2e5c7c1177cc0f3eccf to your computer and use it in GitHub Desktop.
Save bobmcwhirter/f2e5c7c1177cc0f3eccf to your computer and use it in GitHub Desktop.
public InfinispanFraction cacheContainer(String key, CacheContainerConsumer config) {
CacheContainer container = new CacheContainer(key);
if ( config != null ) {
config.accept(container);
}
return cacheContainer(container);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment