Configuration Reference

Version:6.0.0-SNAPSHOT

Micronaut Cache Caffeine Config Properties

🔗
Table 1. Configuration Properties for DefaultCacheConfiguration
Property Type Description Default value

micronaut.caches.*.initial-capacity

java.lang.Integer

micronaut.caches.*.maximum-size

java.lang.Long

micronaut.caches.*.maximum-weight

java.lang.Long

micronaut.caches.*.expire-after-write

java.time.Duration

micronaut.caches.*.expire-after-access

java.time.Duration

micronaut.caches.*.record-stats

boolean

micronaut.caches.*.charset

java.nio.charset.Charset

micronaut.caches.*.test-mode

boolean

micronaut.caches.*.listen-to-removals

boolean

True if listen to removals is enabled

micronaut.caches.*.listen-to-evictions

boolean

True if listen to evictions is enabled

Micronaut Cache Core Config Properties

🔗
Table 2. Configuration Properties for DiscoveryClientCacheConfiguration
Property Type Description Default value

micronaut.caches.discovery-client.initial-capacity

java.lang.Integer

The initial capacity of the cache

micronaut.caches.discovery-client.maximum-size

java.lang.Long

The maximum size of the cache

micronaut.caches.discovery-client.maximum-weight

java.lang.Long

The maximum weight of cache entries

micronaut.caches.discovery-client.expire-after-write

java.time.Duration

The expiry to use after the value is written

micronaut.caches.discovery-client.expire-after-access

java.time.Duration

The {@link Duration}

micronaut.caches.discovery-client.record-stats

boolean

Set whether record stats is enabled. Default value (false).

micronaut.caches.discovery-client.charset

java.nio.charset.Charset

The charset used to serialize and deserialize values

micronaut.caches.discovery-client.test-mode

boolean

Set whether test mode is enabled. Default value (false).

micronaut.caches.discovery-client.enabled

boolean

Whether the discovery client is enabled

Micronaut Cache Ehcache Config Properties

🔗
Table 3. Configuration Properties for EhcacheCacheManagerConfiguration
Property Type Description Default value

ehcache.default-size-of-max-object-size

java.lang.Long

the default maximum size of the largest object in the cache

ehcache.storage-path

java.lang.String

the storage path in the file system

🔗
Table 4. Configuration Properties for CacheManagerBuilder
Property Type Description Default value

ehcache.default-write-behind-thread-pool

java.lang.String

ehcache.default-disk-store-thread-pool

java.lang.String

ehcache.default-event-listeners-thread-pool

java.lang.String

ehcache.class-loader

java.lang.ClassLoader

🔗
Table 5. Configuration Properties for EhcacheConfiguration
Property Type Description Default value

ehcache.caches.*.key-type

java.lang.Class

The type of the keys in the cache

ehcache.caches.*.value-type

java.lang.Class

The type of the values in the cache

🔗
Table 6. Configuration Properties for CacheConfigurationBuilder
Property Type Description Default value

ehcache.caches.*.service

org.ehcache.config.Builder

ehcache.caches.*.eviction-advisor

org.ehcache.config.EvictionAdvisor

ehcache.caches.*.class-loader

java.lang.ClassLoader

ehcache.caches.*.resource-pools

org.ehcache.config.Builder

ehcache.caches.*.loader-writer

org.ehcache.spi.loaderwriter.CacheLoaderWriter

ehcache.caches.*.resilience-strategy

org.ehcache.spi.resilience.ResilienceStrategy

ehcache.caches.*.key-copier

org.ehcache.spi.copy.Copier

ehcache.caches.*.value-copier

org.ehcache.spi.copy.Copier

ehcache.caches.*.key-serializer

org.ehcache.spi.serialization.Serializer

ehcache.caches.*.value-serializer

org.ehcache.spi.serialization.Serializer

ehcache.caches.*.dispatcher-concurrency

int

ehcache.caches.*.event-listeners-thread-pool

java.lang.String

🔗
Table 7. Configuration Properties for CacheConfigurationBuilder
Property Type Description Default value

ehcache.caches.*.service

org.ehcache.config.Builder

ehcache.caches.*.eviction-advisor

org.ehcache.config.EvictionAdvisor

ehcache.caches.*.class-loader

java.lang.ClassLoader

ehcache.caches.*.resource-pools

org.ehcache.config.Builder

ehcache.caches.*.loader-writer

org.ehcache.spi.loaderwriter.CacheLoaderWriter

ehcache.caches.*.resilience-strategy

org.ehcache.spi.resilience.ResilienceStrategy

ehcache.caches.*.key-copier

org.ehcache.spi.copy.Copier

ehcache.caches.*.value-copier

org.ehcache.spi.copy.Copier

ehcache.caches.*.key-serializer

org.ehcache.spi.serialization.Serializer

ehcache.caches.*.value-serializer

org.ehcache.spi.serialization.Serializer

ehcache.caches.*.dispatcher-concurrency

int

ehcache.caches.*.event-listeners-thread-pool

java.lang.String

🔗
Table 8. Configuration Properties for EhcacheConfiguration$ClusteredDedicatedResourcePoolConfiguration
Property Type Description Default value

ehcache.caches.*.clustered-dedicated.max-size

java.lang.Long

The maximum size of the cache, in bytes

ehcache.caches.*.clustered-dedicated.server-resource

java.lang.String

the server resource

🔗
Table 9. Configuration Properties for EhcacheConfiguration$ClusteredSharedResourcePoolConfiguration
Property Type Description Default value

ehcache.caches.*.clustered-shared.server-resource

java.lang.String

the server resource

🔗
Table 10. Configuration Properties for EhcacheConfiguration$DiskTieredCacheConfiguration
Property Type Description Default value

ehcache.caches.*.disk.max-size

java.lang.Long

The maximum size of the cache, in bytes

ehcache.caches.*.disk.segments

java.lang.Integer

The disk segments used

🔗
Table 11. Configuration Properties for EhcacheConfiguration$HeapTieredCacheConfiguration
Property Type Description Default value

ehcache.caches.*.heap.max-size

java.lang.Long

The maximum size of the cache, in bytes

ehcache.caches.*.heap.max-entries

java.lang.Long

The maximum number of entries

ehcache.caches.*.heap.size-of-max-object-size

java.lang.Long

The maximum size of a single object

🔗
Table 12. Configuration Properties for EhcacheConfiguration$OffheapTieredCacheConfiguration
Property Type Description Default value

ehcache.caches.*.offheap.max-size

java.lang.Long

The maximum size of the cache, in bytes

🔗
Table 13. Configuration Properties for EhcacheCacheManagerConfiguration$EhcacheClusterConfiguration
Property Type Description Default value

ehcache.cluster.uri

java.lang.String

cluster URI

ehcache.cluster.default-server-resource

java.lang.String

the default server resource

🔗
Table 14. Configuration Properties for EhcacheClusterResourcePoolConfiguration
Property Type Description Default value

ehcache.cluster.resource-pools.*.max-size

java.lang.Long

The maximum size of the cache, in bytes

ehcache.cluster.resource-pools.*.server-resource

java.lang.String

the server resource

Micronaut Cache Hazelcast Config Properties

🔗
Table 15. Configuration Properties for HazelcastMemberConfiguration
Property Type Description Default value

hazelcast.properties

java.util.Properties

hazelcast.instance-name

java.lang.String

hazelcast.cluster-name

java.lang.String

hazelcast.license-key

java.lang.String

hazelcast.config

java.lang.String

Sets 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>

🔗
Table 16. Configuration Properties for HazelcastClientConfiguration
Property Type Description Default value

hazelcast.client.properties

java.util.Properties

hazelcast.client.instance-name

java.lang.String

hazelcast.client.cluster-name

java.lang.String

hazelcast.client.labels

java.util.Set

hazelcast.client.user-context

java.util.concurrent.ConcurrentMap

hazelcast.client.config

java.lang.String

Sets 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>

🔗
Table 17. Configuration Properties for ConnectionRetryConfig
Property Type Description Default value

hazelcast.client.connection-retry.initial-backoff-millis

int

hazelcast.client.connection-retry.max-backoff-millis

int

🔗
Table 18. Configuration Properties for ClientNetworkConfig
Property Type Description Default value

hazelcast.client.network.connection-timeout

int

hazelcast.client.network.addresses

java.util.List

hazelcast.client.network.redo-operation

boolean

hazelcast.client.network.outbound-port-definitions

java.util.Collection

hazelcast.client.network.outbound-ports

java.util.Collection

🔗
Table 19. Configuration Properties for ClientNetworkConfig
Property Type Description Default value

hazelcast.client.network.connection-timeout

int

hazelcast.client.network.addresses

java.util.List

hazelcast.client.network.redo-operation

boolean

hazelcast.client.network.outbound-port-definitions

java.util.Collection

hazelcast.client.network.outbound-ports

java.util.Collection

🔗
Table 20. Configuration Properties for SocketOptions
Property Type Description Default value

hazelcast.client.network.socket.tcp-no-delay

boolean

hazelcast.client.network.socket.keep-alive

boolean

hazelcast.client.network.socket.reuse-address

boolean

hazelcast.client.network.socket.linger-seconds

int

hazelcast.client.network.socket.buffer-size

int

Micronaut Cache Infinispan Config Properties

🔗
Table 21. Configuration Properties for InfinispanHotRodClientConfiguration
Property Type Description Default value

infinispan.client.hotrod.config-file

java.lang.String

the configuration file location

🔗
Table 22. Configuration Properties for ConfigurationBuilder
Property Type Description Default value

infinispan.client.hotrod.add-cluster

java.lang.String

infinispan.client.hotrod.add-servers

java.lang.String

infinispan.client.hotrod.balancing-strategy

java.lang.String

infinispan.client.hotrod.connection-timeout

int

infinispan.client.hotrod.force-return-values

boolean

infinispan.client.hotrod.marshaller

java.lang.String

infinispan.client.hotrod.add-context-initializer

java.lang.String

infinispan.client.hotrod.socket-timeout

int

infinispan.client.hotrod.tcp-no-delay

boolean

infinispan.client.hotrod.tcp-keep-alive

boolean

infinispan.client.hotrod.max-retries

int

infinispan.client.hotrod.batch-size

int

🔗
Table 23. Configuration Properties for ExecutorFactoryConfigurationBuilder
Property Type Description Default value

infinispan.client.hotrod.async-executor-factory.factory-class

java.lang.Class

🔗
Table 24. Configuration Properties for AuthenticationConfigurationBuilder
Property Type Description Default value

infinispan.client.hotrod.security.authentication.enabled

boolean

infinispan.client.hotrod.security.authentication.sasl-mechanism

java.lang.String

infinispan.client.hotrod.security.authentication.server-name

java.lang.String

infinispan.client.hotrod.security.authentication.username

java.lang.String

infinispan.client.hotrod.security.authentication.password

java.lang.String

infinispan.client.hotrod.security.authentication.realm

java.lang.String

🔗
Table 25. Configuration Properties for SslConfigurationBuilder
Property Type Description Default value

infinispan.client.hotrod.security.ssl.enabled

boolean

infinispan.client.hotrod.security.ssl.key-store-file-name

java.lang.String

infinispan.client.hotrod.security.ssl.key-store-type

java.lang.String

infinispan.client.hotrod.security.ssl.key-store-password

char

infinispan.client.hotrod.security.ssl.key-alias

java.lang.String

infinispan.client.hotrod.security.ssl.trust-store-file-name

java.lang.String

infinispan.client.hotrod.security.ssl.trust-store-type

java.lang.String

infinispan.client.hotrod.security.ssl.trust-store-password

char

infinispan.client.hotrod.security.ssl.sni-host-name

java.lang.String

infinispan.client.hotrod.security.ssl.protocol

java.lang.String

🔗
Table 26. Configuration Properties for ServerConfigurationBuilder
Property Type Description Default value

infinispan.client.hotrod.server.host

java.lang.String

infinispan.client.hotrod.server.port

int

🔗
Table 27. Configuration Properties for StatisticsConfigurationBuilder
Property Type Description Default value

infinispan.client.hotrod.statistics.enabled

boolean

infinispan.client.hotrod.statistics.jmx-enabled

boolean

infinispan.client.hotrod.statistics.jmx-domain

java.lang.String

infinispan.client.hotrod.statistics.jmx-name

java.lang.String