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