Package io.micronaut.cache.caffeine
Class DefaultCacheConfiguration
java.lang.Object
io.micronaut.cache.CacheConfiguration
io.micronaut.cache.caffeine.configuration.CaffeineCacheConfiguration
io.micronaut.cache.caffeine.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
-
Field Summary
Fields inherited from class io.micronaut.cache.CacheConfiguration
charset, DEFAULT_RECORD_STATS, DEFAULT_TESTMODE, PREFIX
-
Constructor Summary
ConstructorDescriptionDefaultCacheConfiguration
(String cacheName, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration) Creates a new cache with the given name. -
Method Summary
Methods inherited from class io.micronaut.cache.caffeine.configuration.CaffeineCacheConfiguration
isListenToEvictions, isListenToRemovals, setListenToEvictions, setListenToRemovals
Methods inherited from class io.micronaut.cache.CacheConfiguration
getCacheName, getCharset, getExpireAfterAccess, getExpireAfterWrite, getInitialCapacity, getMaximumSize, getMaximumWeight, isRecordStats, isTestMode, setCharset, setExpireAfterAccess, setExpireAfterWrite, setInitialCapacity, setMaximumSize, setMaximumWeight, setRecordStats, setTestMode
-
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 cacheapplicationConfiguration
- The common application configuration
-