Class DefaultCacheConfiguration


@EachProperty("micronaut.caches") public class DefaultCacheConfiguration extends CaffeineCacheConfiguration
Default cache configuration implementation used to configure instances of DefaultSyncCache.
Since:
1.0.2
Author:
graemerocher
  • Constructor Details

    • DefaultCacheConfiguration

      public DefaultCacheConfiguration(@Parameter String cacheName, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
      Creates a new cache with the given name.
      Parameters:
      cacheName - Name or key of the cache
      applicationConfiguration - The common application configuration