@EachProperty(value="micronaut.caches") public class DefaultCacheConfiguration extends CaffeineCacheConfiguration
DefaultSyncCache
.charset, DEFAULT_RECORD_STATS, DEFAULT_TESTMODE, PREFIX
Constructor and Description |
---|
DefaultCacheConfiguration(String cacheName,
io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
Creates a new cache with the given name.
|
isListenToEvictions, isListenToRemovals, setListenToEvictions, setListenToRemovals
getCacheName, getCharset, getExpireAfterAccess, getExpireAfterWrite, getInitialCapacity, getMaximumSize, getMaximumWeight, isRecordStats, isTestMode, setCharset, setExpireAfterAccess, setExpireAfterWrite, setInitialCapacity, setMaximumSize, setMaximumWeight, setRecordStats, setTestMode
public DefaultCacheConfiguration(@Parameter String cacheName, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
cacheName
- Name or key of the cacheapplicationConfiguration
- The common application configuration