C - The native cache implementation@Singleton @Primary public class DefaultCacheManager<C> extends java.lang.Object implements CacheManager<C>
CacheManager interface.| Constructor and Description |
|---|
DefaultCacheManager(java.util.List<SyncCache<C>> caches,
io.micronaut.context.BeanProvider<DynamicCacheManager<C>> dynamicCacheManager)
Create default cache manager for the given caches.
|
DefaultCacheManager(SyncCache<C>... caches)
Create default cache manager for the given caches.
|
| Modifier and Type | Method and Description |
|---|---|
SyncCache<C> |
getCache(java.lang.String name)
Retrieve a cache for the given name.
|
java.util.Set<java.lang.String> |
getCacheNames() |
@Inject public DefaultCacheManager(java.util.List<SyncCache<C>> caches, @Nullable io.micronaut.context.BeanProvider<DynamicCacheManager<C>> dynamicCacheManager)
caches - List of synchronous cache implementationsdynamicCacheManager - The dynamic cache manager@NonNull public java.util.Set<java.lang.String> getCacheNames()
getCacheNames in interface CacheManager<C>@NonNull public SyncCache<C> getCache(java.lang.String name)
CacheManagergetCache in interface CacheManager<C>name - The name of the cacheSyncCache instance