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