@EachProperty(value="micronaut.caches") public class DefaultCacheConfiguration extends CacheConfiguration
DefaultSyncCache
.charset, DEFAULT_RECORD_STATS, DEFAULT_TESTMODE, PREFIX
Constructor and Description |
---|
DefaultCacheConfiguration(String cacheName,
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 String cacheName, ApplicationConfiguration applicationConfiguration)
cacheName
- Name or key of the cacheapplicationConfiguration
- The common application configuration