Package io.micronaut.microstream.cache
Class CacheConfigurationProperties
java.lang.Object
io.micronaut.microstream.cache.CacheConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,CacheConfiguration
@ConfigurationProperties("microstream.cache")
public class CacheConfigurationProperties
extends Object
implements CacheConfiguration
Configuration for MicroStream Cache module.
CacheConfiguration
and CacheConfigurationProperties
exist to generate configuration reference documentation automatically.- Since:
- 1.0.0
It uses a different class because
MicroStreamCacheConfigurationProperties
is aEachProperty
implementation. - Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Whether MicroStream Cache module is enabled. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setEnabled
(boolean enabled) Whether MicroStream Cache module is enabled.
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDWhether MicroStream Cache module is enabled.- See Also:
-
-
Constructor Details
-
CacheConfigurationProperties
public CacheConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) Whether MicroStream Cache module is enabled. Default Value: true- Parameters:
enabled
- Whether this cache is enabled.
-