Infinispan Cache Container API: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 4: Line 4:


=<tt>RemoteCacheManager</tt>=
=<tt>RemoteCacheManager</tt>=
<pre>
Configuration c = new ConfigurationBuilder().addServer().host(initialHost).port(port).build();
RemoteCacheManager rcm = new RemoteCacheManager(c);
</pre>


=<tt>EmbeddedCacheManager</tt>=
=<tt>EmbeddedCacheManager</tt>=

Revision as of 16:29, 31 May 2016

Internal

RemoteCacheManager

Configuration c = new ConfigurationBuilder().addServer().host(initialHost).port(port).build();
RemoteCacheManager rcm = new RemoteCacheManager(c);

EmbeddedCacheManager

EmbeddedCacheManager cm = new DefaultCacheManager( [...] );