Class DefaultCacheManager<C>

java.lang.Object
io.micronaut.cache.DefaultCacheManager<C>
Type Parameters:
C - The native cache implementation
All Implemented Interfaces:
CacheManager<C>

@Singleton @Primary public class DefaultCacheManager<C> extends Object implements CacheManager<C>
Default implementation of the CacheManager interface.
Since:
1.0
Author:
Graeme Rocher
  • Constructor Details

    • DefaultCacheManager

      @Inject public DefaultCacheManager(List<SyncCache<C>> caches, @Nullable @Nullable io.micronaut.context.BeanProvider<DynamicCacheManager<C>> dynamicCacheManager)
      Create default cache manager for the given caches.
      Parameters:
      caches - List of synchronous cache implementations
      dynamicCacheManager - The dynamic cache manager
    • DefaultCacheManager

      public DefaultCacheManager(SyncCache<C>... caches)
      Create default cache manager for the given caches.
      Parameters:
      caches - List of synchronous cache implementations
  • Method Details