@Singleton public class InfinispanCacheManager extends java.lang.Object implements 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 |
---|---|
SyncCache<org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object>> |
getCache(java.lang.String name)
Retrieve a cache for the given 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 SyncCache<org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object>> getCache(java.lang.String name)
DynamicCacheManager
getCache
in interface DynamicCacheManager<org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object>>
name
- The name of the cacheSyncCache
instance