Package io.micronaut.cache.caffeine
Class DefaultDynamicCacheManager
- java.lang.Object
-
- io.micronaut.cache.caffeine.DefaultDynamicCacheManager
-
- All Implemented Interfaces:
io.micronaut.cache.DynamicCacheManager<com.github.benmanes.caffeine.cache.Cache>
@Singleton @Requires(missingBeans=io.micronaut.cache.DynamicCacheManager.class) @Requires(property="micronaut.cache.dynamic",notEquals="false") public class DefaultDynamicCacheManager extends java.lang.Object implements io.micronaut.cache.DynamicCacheManager<com.github.benmanes.caffeine.cache.Cache>DefaultDynamicCacheManagerimplementation that createsDefaultSyncCaches with default values.- Since:
- 1.3.0
-
-
Constructor Summary
Constructors Constructor Description DefaultDynamicCacheManager(io.micronaut.context.ApplicationContext applicationContext, io.micronaut.core.convert.ConversionService<?> conversionService, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)Creates a default dynamic cache manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micronaut.cache.SyncCache<com.github.benmanes.caffeine.cache.Cache>getCache(java.lang.String name)
-
-
-
Constructor Detail
-
DefaultDynamicCacheManager
public DefaultDynamicCacheManager(io.micronaut.context.ApplicationContext applicationContext, io.micronaut.core.convert.ConversionService<?> conversionService, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)Creates a default dynamic cache manager.- Parameters:
applicationContext- the application contextconversionService- the conversion serviceapplicationConfiguration- the application configuration
-
-