Micronaut Cache Configuration Reference

Every documented configuration property of Micronaut Cache, with types, descriptions, and defaults.

Micronaut Cache documentation

132 properties across 5 sections

Micronaut Cache Caffeine Config Properties

Configuration properties for DefaultCacheConfiguration

PropertyTypeDescription
micronaut.caches.*.initial-capacityjava.lang.Integer
micronaut.caches.*.maximum-sizejava.lang.Long
micronaut.caches.*.maximum-weightjava.lang.Long
micronaut.caches.*.expire-after-writejava.time.Duration
micronaut.caches.*.expire-after-accessjava.time.Duration
micronaut.caches.*.record-statsboolean
micronaut.caches.*.charsetjava.nio.charset.Charset
micronaut.caches.*.test-modeboolean
micronaut.caches.*.listen-to-removalsbooleanTrue if listen to removals is enabled
micronaut.caches.*.listen-to-evictionsbooleanTrue if listen to evictions is enabled

Micronaut Cache Core Config Properties

Configuration properties for DiscoveryClientCacheConfiguration

PropertyTypeDescription
micronaut.caches.discovery-client.initial-capacityjava.lang.IntegerThe initial capacity of the cache
micronaut.caches.discovery-client.maximum-sizejava.lang.LongThe maximum size of the cache
micronaut.caches.discovery-client.maximum-weightjava.lang.LongThe maximum weight of cache entries
micronaut.caches.discovery-client.expire-after-writejava.time.DurationThe expiry to use after the value is written
micronaut.caches.discovery-client.expire-after-accessjava.time.DurationThe {@link Duration}
micronaut.caches.discovery-client.record-statsbooleanSet whether record stats is enabled. Default value (false).
micronaut.caches.discovery-client.charsetjava.nio.charset.CharsetThe charset used to serialize and deserialize values
micronaut.caches.discovery-client.test-modebooleanSet whether test mode is enabled. Default value (false).
micronaut.caches.discovery-client.enabledbooleanWhether the discovery client is enabled

Micronaut Cache Ehcache Config Properties

Configuration properties for EhcacheCacheManagerConfiguration

PropertyTypeDescription
ehcache.default-size-of-max-object-sizejava.lang.Longthe default maximum size of the largest object in the cache
ehcache.storage-pathjava.lang.Stringthe storage path in the file system
ehcache.resource-pool-configurationsjava.util.List

Configuration properties for CacheManagerBuilder

PropertyTypeDescription
ehcache.default-write-behind-thread-pooljava.lang.String
ehcache.default-disk-store-thread-pooljava.lang.String
ehcache.default-event-listeners-thread-pooljava.lang.String
ehcache.class-loaderjava.lang.ClassLoader

Configuration properties for EhcacheConfiguration

PropertyTypeDescription
ehcache.caches.*.key-typejava.lang.ClassThe type of the keys in the cache
ehcache.caches.*.value-typejava.lang.ClassThe type of the values in the cache

Configuration properties for CacheConfigurationBuilder

PropertyTypeDescription
ehcache.caches.*.serviceorg.ehcache.config.Builder
ehcache.caches.*.eviction-advisororg.ehcache.config.EvictionAdvisor
ehcache.caches.*.class-loaderjava.lang.ClassLoader
ehcache.caches.*.resource-poolsorg.ehcache.config.Builder
ehcache.caches.*.loader-writerorg.ehcache.spi.loaderwriter.CacheLoaderWriter
ehcache.caches.*.resilience-strategyorg.ehcache.spi.resilience.ResilienceStrategy
ehcache.caches.*.key-copierorg.ehcache.spi.copy.Copier
ehcache.caches.*.value-copierorg.ehcache.spi.copy.Copier
ehcache.caches.*.key-serializerorg.ehcache.spi.serialization.Serializer
ehcache.caches.*.value-serializerorg.ehcache.spi.serialization.Serializer
ehcache.caches.*.dispatcher-concurrencyint
ehcache.caches.*.event-listeners-thread-pooljava.lang.String

Configuration properties for CacheConfigurationBuilder

PropertyTypeDescription
ehcache.caches.*.serviceorg.ehcache.config.Builder
ehcache.caches.*.eviction-advisororg.ehcache.config.EvictionAdvisor
ehcache.caches.*.class-loaderjava.lang.ClassLoader
ehcache.caches.*.resource-poolsorg.ehcache.config.Builder
ehcache.caches.*.loader-writerorg.ehcache.spi.loaderwriter.CacheLoaderWriter
ehcache.caches.*.resilience-strategyorg.ehcache.spi.resilience.ResilienceStrategy
ehcache.caches.*.key-copierorg.ehcache.spi.copy.Copier
ehcache.caches.*.value-copierorg.ehcache.spi.copy.Copier
ehcache.caches.*.key-serializerorg.ehcache.spi.serialization.Serializer
ehcache.caches.*.value-serializerorg.ehcache.spi.serialization.Serializer
ehcache.caches.*.dispatcher-concurrencyint
ehcache.caches.*.event-listeners-thread-pooljava.lang.String

Configuration properties for EhcacheConfiguration$ClusteredDedicatedResourcePoolConfiguration

PropertyTypeDescription
ehcache.caches.*.clustered-dedicated.max-sizejava.lang.LongThe maximum size of the cache, in bytes
ehcache.caches.*.clustered-dedicated.server-resourcejava.lang.Stringthe server resource

Configuration properties for EhcacheConfiguration$ClusteredSharedResourcePoolConfiguration

PropertyTypeDescription
ehcache.caches.*.clustered-shared.server-resourcejava.lang.Stringthe server resource

Configuration properties for EhcacheConfiguration$DiskTieredCacheConfiguration

PropertyTypeDescription
ehcache.caches.*.disk.max-sizejava.lang.LongThe maximum size of the cache, in bytes
ehcache.caches.*.disk.segmentsjava.lang.IntegerThe disk segments used

Configuration properties for EhcacheConfiguration$HeapTieredCacheConfiguration

PropertyTypeDescription
ehcache.caches.*.heap.max-sizejava.lang.LongThe maximum size of the cache, in bytes
ehcache.caches.*.heap.max-entriesjava.lang.LongThe maximum number of entries
ehcache.caches.*.heap.size-of-max-object-sizejava.lang.LongThe maximum size of a single object

Configuration properties for EhcacheConfiguration$OffheapTieredCacheConfiguration

PropertyTypeDescription
ehcache.caches.*.offheap.max-sizejava.lang.LongThe maximum size of the cache, in bytes

Configuration properties for EhcacheCacheManagerConfiguration$EhcacheClusterConfiguration

PropertyTypeDescription
ehcache.cluster.urijava.lang.Stringcluster URI
ehcache.cluster.default-server-resourcejava.lang.Stringthe default server resource

Configuration properties for EhcacheClusterResourcePoolConfiguration

PropertyTypeDescription
ehcache.cluster.resource-pools.*.max-sizejava.lang.LongThe maximum size of the cache, in bytes
ehcache.cluster.resource-pools.*.server-resourcejava.lang.Stringthe server resource

Micronaut Cache Hazelcast Config Properties

Configuration properties for HazelcastMemberConfiguration

PropertyTypeDescription
hazelcast.propertiesjava.util.Properties
hazelcast.instance-namejava.lang.String
hazelcast.cluster-namejava.lang.String
hazelcast.license-keyjava.lang.String
hazelcast.configjava.lang.StringSets the path to a Hazelcast XML or YAML configuration file. <p>If non-null, the contents of the file will override this configuration. This path will be used to set system property {@code hazelcast.config}.</p>

Configuration properties for HazelcastClientConfiguration

PropertyTypeDescription
hazelcast.client.propertiesjava.util.Properties
hazelcast.client.instance-namejava.lang.String
hazelcast.client.cluster-namejava.lang.String
hazelcast.client.labelsjava.util.Set
hazelcast.client.user-contextjava.util.concurrent.ConcurrentMap
hazelcast.client.configjava.lang.StringSets the path to a Hazelcast XML or YAML configuration file. <p>If non-null, the contents of the file will override this configuration. This path will be used to set system property {@code hazelcast.client.config}.</p>

Configuration properties for ConnectionRetryConfig

PropertyTypeDescription
hazelcast.client.connection-retry.initial-backoff-millisint
hazelcast.client.connection-retry.max-backoff-millisint

Configuration properties for ClientNetworkConfig

PropertyTypeDescription
hazelcast.client.network.connection-timeoutint
hazelcast.client.network.addressesjava.util.List
hazelcast.client.network.redo-operationboolean
hazelcast.client.network.outbound-port-definitionsjava.util.Collection
hazelcast.client.network.outbound-portsjava.util.Collection

Configuration properties for ClientNetworkConfig

PropertyTypeDescription
hazelcast.client.network.connection-timeoutint
hazelcast.client.network.addressesjava.util.List
hazelcast.client.network.redo-operationboolean
hazelcast.client.network.outbound-port-definitionsjava.util.Collection
hazelcast.client.network.outbound-portsjava.util.Collection

Configuration properties for SocketOptions

PropertyTypeDescription
hazelcast.client.network.socket.tcp-no-delayboolean
hazelcast.client.network.socket.keep-aliveboolean
hazelcast.client.network.socket.reuse-addressboolean
hazelcast.client.network.socket.linger-secondsint
hazelcast.client.network.socket.buffer-sizeint

Micronaut Cache Infinispan Config Properties

Configuration properties for InfinispanHotRodClientConfiguration

PropertyTypeDescription
infinispan.client.hotrod.config-filejava.lang.Stringthe configuration file location
infinispan.client.hotrod.resource-resolverResourceResolver
infinispan.client.hotrod.executor-factoryorg.infinispan.commons.executors.ExecutorFactory
infinispan.client.hotrod.environmentEnvironment

Configuration properties for ConfigurationBuilder

PropertyTypeDescription
infinispan.client.hotrod.add-clusterjava.lang.String
infinispan.client.hotrod.add-serversjava.lang.String
infinispan.client.hotrod.balancing-strategyjava.lang.String
infinispan.client.hotrod.connection-timeoutint
infinispan.client.hotrod.force-return-valuesboolean
infinispan.client.hotrod.marshallerjava.lang.String
infinispan.client.hotrod.add-context-initializerjava.lang.String
infinispan.client.hotrod.socket-timeoutint
infinispan.client.hotrod.tcp-no-delayboolean
infinispan.client.hotrod.tcp-keep-aliveboolean
infinispan.client.hotrod.max-retriesint
infinispan.client.hotrod.batch-sizeint

Configuration properties for ExecutorFactoryConfigurationBuilder

PropertyTypeDescription
infinispan.client.hotrod.async-executor-factory.factory-classjava.lang.Class

Configuration properties for AuthenticationConfigurationBuilder

PropertyTypeDescription
infinispan.client.hotrod.security.authentication.enabledboolean
infinispan.client.hotrod.security.authentication.sasl-mechanismjava.lang.String
infinispan.client.hotrod.security.authentication.server-namejava.lang.String
infinispan.client.hotrod.security.authentication.usernamejava.lang.String
infinispan.client.hotrod.security.authentication.passwordjava.lang.String
infinispan.client.hotrod.security.authentication.realmjava.lang.String

Configuration properties for SslConfigurationBuilder

PropertyTypeDescription
infinispan.client.hotrod.security.ssl.enabledboolean
infinispan.client.hotrod.security.ssl.key-store-file-namejava.lang.String
infinispan.client.hotrod.security.ssl.key-store-typejava.lang.String
infinispan.client.hotrod.security.ssl.key-store-passwordchar
infinispan.client.hotrod.security.ssl.key-aliasjava.lang.String
infinispan.client.hotrod.security.ssl.trust-store-file-namejava.lang.String
infinispan.client.hotrod.security.ssl.trust-store-typejava.lang.String
infinispan.client.hotrod.security.ssl.trust-store-passwordchar
infinispan.client.hotrod.security.ssl.sni-host-namejava.lang.String
infinispan.client.hotrod.security.ssl.protocoljava.lang.String

Configuration properties for ServerConfigurationBuilder

PropertyTypeDescription
infinispan.client.hotrod.server.hostjava.lang.String
infinispan.client.hotrod.server.portint

Configuration properties for StatisticsConfigurationBuilder

PropertyTypeDescription
infinispan.client.hotrod.statistics.enabledboolean
infinispan.client.hotrod.statistics.jmx-enabledboolean
infinispan.client.hotrod.statistics.jmx-domainjava.lang.String
infinispan.client.hotrod.statistics.jmx-namejava.lang.String