Package io.micronaut.microstream.cache
Class CacheConfigurationFactory<K,V>
java.lang.Object
io.micronaut.microstream.cache.CacheConfigurationFactory<K,V>
- Type Parameters:
K
- Key TypeV
- Value Type
Creates a
CacheConfiguration.Builder
for each MicroStreamCacheConfiguration
.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCacheConfigurationProvider
(MicroStreamCacheConfiguration<K, V> cacheConfiguration) Creates aCacheConfiguration.Builder
for eachMicroStreamCacheConfiguration
.
-
Constructor Details
-
CacheConfigurationFactory
public CacheConfigurationFactory(io.micronaut.context.BeanContext beanContext) - Parameters:
beanContext
- Bean Context
-
-
Method Details
-
createCacheConfigurationProvider
@EachBean(MicroStreamCacheConfiguration.class) @Singleton public one.microstream.cache.types.CacheConfiguration.Builder<K,V> createCacheConfigurationProvider(MicroStreamCacheConfiguration<K, V> cacheConfiguration) Creates aCacheConfiguration.Builder
for eachMicroStreamCacheConfiguration
.- Parameters:
cacheConfiguration
- Cache Configuration- Returns:
- Cache Configuration Builder
-