@Singleton
public class InfinispanCacheManager
extends java.lang.Object
implements io.micronaut.cache.DynamicCacheManager<org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object>>
DynamicCacheManager
that creates Infinispan caches on demand.RemoteCacheManagerAdmin.getOrCreateCache(String, BasicConfiguration)
Constructor and Description |
---|
InfinispanCacheManager(org.infinispan.client.hotrod.RemoteCacheManager remoteCacheManager,
io.micronaut.core.convert.ConversionService<?> conversionService) |
Modifier and Type | Method and Description |
---|---|
io.micronaut.cache.SyncCache<org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object>> |
getCache(java.lang.String name) |
public InfinispanCacheManager(org.infinispan.client.hotrod.RemoteCacheManager remoteCacheManager, io.micronaut.core.convert.ConversionService<?> conversionService)
remoteCacheManager
- the Infinispan remote cache managerconversionService
- the conversion service@Nonnull public io.micronaut.cache.SyncCache<org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object>> getCache(java.lang.String name)
getCache
in interface io.micronaut.cache.DynamicCacheManager<org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object>>