Configuration Reference

Version:7.0.0-SNAPSHOT

Micronaut Redis Lettuce Config Properties

🔗
Table 1. Configuration Properties for DefaultRedisConfiguration
Property Type Description

redis.host

java.lang.String

redis.sentinel-master-id

java.lang.String

redis.port

int

redis.socket

java.lang.String

redis.username

java.lang.String

redis.password

java.lang.String

redis.credentials-provider

io.lettuce.core.RedisCredentialsProvider

redis.timeout

java.time.Duration

redis.database

int

redis.client-name

java.lang.String

redis.library-name

java.lang.String

redis.library-version

java.lang.String

redis.ssl

boolean

redis.verify-peer

boolean

redis.start-tls

boolean

redis.uri

java.net.URI

redis.uris

java.net.URI

redis.io-thread-pool-size

java.lang.Integer

Returns the pool size (number of threads) for IO threads. The indicated size does not reflect the number for all IO threads. TCP and socket connections (epoll) require different IO pool.

{@link io.lettuce.core.resource.ClientResources#ioThreadPoolSize()}

redis.computation-thread-pool-size

java.lang.Integer

Returns the pool size (number of threads) for all computation tasks.

{@link io.lettuce.core.resource.ClientResources#computationThreadPoolSize()}

redis.name

java.lang.String

🔗
Table 2. Configuration Properties for DefaultRedisCacheConfiguration
Property Type Description

redis.cache.server

java.lang.String

redis.cache.value-serializer

java.lang.Class

redis.cache.key-serializer

java.lang.Class

The {@link ObjectSerializer} to use for serializing keys. Defaults to DefaultStringKeySerializer.

redis.cache.expire-after-write

java.time.Duration

redis.cache.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.

redis.cache.expiration-after-write-policy

java.lang.String

redis.cache.charset

java.nio.charset.Charset

🔗
Table 3. Configuration Properties for RedisHttpSessionConfiguration
Property Type Description

micronaut.session.http.redis.namespace

java.lang.String

micronaut.session.http.redis.server-name

java.lang.String

micronaut.session.http.redis.session-created-topic

java.lang.String

micronaut.session.http.redis.active-sessions-key

java.lang.String

micronaut.session.http.redis.value-serializer

java.lang.Class

micronaut.session.http.redis.charset

java.nio.charset.Charset

micronaut.session.http.redis.enable-keyspace-events

boolean

micronaut.session.http.redis.write-mode

RedisHttpSessionConfiguration$WriteMode

micronaut.session.http.redis.expired-session-check

java.time.Duration

🔗
Table 4. Configuration Properties for NamedRedisServersConfiguration
Property Type Description

redis.servers.*.host

java.lang.String

redis.servers.*.sentinel-master-id

java.lang.String

redis.servers.*.port

int

redis.servers.*.socket

java.lang.String

redis.servers.*.username

java.lang.String

redis.servers.*.password

java.lang.String

redis.servers.*.credentials-provider

io.lettuce.core.RedisCredentialsProvider

redis.servers.*.timeout

java.time.Duration

redis.servers.*.database

int

redis.servers.*.client-name

java.lang.String

redis.servers.*.library-name

java.lang.String

redis.servers.*.library-version

java.lang.String

redis.servers.*.ssl

boolean

redis.servers.*.verify-peer

boolean

redis.servers.*.start-tls

boolean

redis.servers.*.uri

java.net.URI

redis.servers.*.uris

java.net.URI

redis.servers.*.io-thread-pool-size

java.lang.Integer

Returns the pool size (number of threads) for IO threads. The indicated size does not reflect the number for all IO threads. TCP and socket connections (epoll) require different IO pool.

{@link io.lettuce.core.resource.ClientResources#ioThreadPoolSize()}

redis.servers.*.computation-thread-pool-size

java.lang.Integer

Returns the pool size (number of threads) for all computation tasks.

{@link io.lettuce.core.resource.ClientResources#computationThreadPoolSize()}

redis.servers.*.name

java.lang.String

🔗
Table 5. Configuration Properties for RedisCacheConfiguration
Property Type Description

redis.caches.*.server

java.lang.String

redis.caches.*.value-serializer

java.lang.Class

redis.caches.*.key-serializer

java.lang.Class

The {@link ObjectSerializer} to use for serializing keys. Defaults to DefaultStringKeySerializer.

redis.caches.*.expire-after-write

java.time.Duration

redis.caches.*.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.

redis.caches.*.expiration-after-write-policy

java.lang.String

redis.caches.*.charset

java.nio.charset.Charset

🔗
Table 6. Configuration Properties for DefaultRedisConnectionPoolConfiguration
Property Type Description

redis.pool.min-idle

java.lang.Integer

redis.pool.max-idle

java.lang.Integer

redis.pool.max-total

java.lang.Integer

redis.pool.enabled

java.lang.Boolean