Configuration Reference

Version:5.1.0

Micronaut Cache Caffeine Config Properties

πŸ”—
Table 1. Configuration Properties for DefaultCacheConfiguration
Property Type Description

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

If a removal listener is defined and this property is true then caffeine will send removal events to that listener.

micronaut.caches.*.listen-to-evictions

boolean

If a removal listener is defined and this property is true then caffeine will send eviction events to that listener.

Micronaut Cache Core Config Properties

πŸ”—
Table 2. Configuration Properties for DiscoveryClientCacheConfiguration
Property Type Description

micronaut.caches.discovery-client.initial-capacity

java.lang.Integer

micronaut.caches.discovery-client.maximum-size

java.lang.Long

micronaut.caches.discovery-client.maximum-weight

java.lang.Long

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

java.time.Duration

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

java.time.Duration

Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry’s creation, the most recent replacement of its value, or its last read.

micronaut.caches.discovery-client.record-stats

boolean

Some caches support recording statistics. For example to record hit and miss ratio’s fine tune the cache characteristics.

micronaut.caches.discovery-client.charset

java.nio.charset.Charset

micronaut.caches.discovery-client.test-mode

boolean

Some caches have a test mode. For example to to enable the eager execution of cleanup operations making it easier to test.

micronaut.caches.discovery-client.enabled

boolean

Default value (true).

Micronaut Cache Ehcache Config Properties

πŸ”—
Table 3. Configuration Properties for EhcacheCacheManagerConfiguration$EhcacheClusterConfiguration
Property Type Description

ehcache.cluster.uri

java.lang.String

ehcache.cluster.default-server-resource

java.lang.String

πŸ”—
Table 4. Configuration Properties for EhcacheConfiguration$OffheapTieredCacheConfiguration
Property Type Description

ehcache.caches.*.offheap.max-size

java.lang.Long

πŸ”—
Table 5. Configuration Properties for EhcacheConfiguration$HeapTieredCacheConfiguration
Property Type Description

ehcache.caches.*.heap.max-size

java.lang.Long

ehcache.caches.*.heap.max-entries

java.lang.Long

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

java.lang.Long

πŸ”—
Table 6. Configuration Properties for EhcacheClusterResourcePoolConfiguration
Property Type Description

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

java.lang.Long

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

java.lang.String

πŸ”—
Table 7. Configuration Properties for EhcacheConfiguration$ClusteredDedicatedResourcePoolConfiguration
Property Type Description

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

java.lang.Long

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

java.lang.String

πŸ”—
Table 8. Configuration Properties for EhcacheConfiguration
Property Type Description

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

ehcache.caches.*.key-type

java.lang.Class

ehcache.caches.*.value-type

java.lang.Class

πŸ”—
Table 9. Configuration Properties for EhcacheConfiguration$DiskTieredCacheConfiguration
Property Type Description

ehcache.caches.*.disk.max-size

java.lang.Long

ehcache.caches.*.disk.segments

java.lang.Integer

πŸ”—
Table 10. Configuration Properties for EhcacheCacheManagerConfiguration
Property Type Description

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

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

java.lang.Long

ehcache.storage-path

java.lang.String

πŸ”—
Table 11. Configuration Properties for EhcacheConfiguration$ClusteredSharedResourcePoolConfiguration
Property Type Description

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

java.lang.String

Micronaut Cache Hazelcast Config Properties

πŸ”—
Table 12. Configuration Properties for HazelcastMemberConfiguration
Property Type Description

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

Returns 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 13. Configuration Properties for HazelcastClientConfiguration
Property Type Description

hazelcast.client.properties

java.util.Properties

hazelcast.client.network.smart-routing

boolean

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

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

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

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

int

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

int

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 14. Configuration Properties for InfinispanHotRodClientConfiguration
Property Type Description

infinispan.client.hotrod.server.host

java.lang.String

infinispan.client.hotrod.server.port

int

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

infinispan.client.hotrod.connection-pool.max-active

int

infinispan.client.hotrod.connection-pool.max-wait

long

infinispan.client.hotrod.connection-pool.min-idle

int

infinispan.client.hotrod.connection-pool.min-evictable-idle-time

long

infinispan.client.hotrod.connection-pool.max-pending-requests

int

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

java.lang.Class

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

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

infinispan.client.hotrod.config-file

java.lang.String

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