Configuration Reference

Version:1.1.1

Redis Lettuce Config Properties

🔗
Table 1. Configuration Properties for RedisHttpSessionConfiguration
Property Type Description

micronaut.session.http.redis.namespace

java.lang.String

Sets the namespace to use.

micronaut.session.http.redis.server-name

java.lang.String

Sets the server name.

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

java.lang.String

Sets the topic to publish session created events to.

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

java.lang.String

Sets the key to store active sessions in.

micronaut.session.http.redis.value-serializer

java.lang.Class

Sets the default value serializer to use.

micronaut.session.http.redis.charset

java.nio.charset.Charset

Sets the charset to use to serialize values.

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

boolean

Sets whether keyspace events should be enabled at startup.

micronaut.session.http.redis.write-mode

RedisHttpSessionConfiguration$WriteMode

Sets the write mode to use.

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

java.time.Duration

Sets the duration to check for expired sessions.

🔗
Table 2. Configuration Properties for EmbeddedRedisServer$Configuration
Property Type Description

redis.embedded.redis-exec-provider

redis.embedded.RedisExecProvider

redis.embedded.port

java.lang.Integer

redis.embedded.slave-of

java.net.InetSocketAddress

redis.embedded.config-file

java.lang.String

redis.embedded.setting

java.lang.String

🔗
Table 3. 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.*.password

java.lang.String

redis.servers.*.timeout

java.time.Duration

redis.servers.*.database

int

redis.servers.*.client-name

java.lang.String

redis.servers.*.ssl

boolean

redis.servers.*.verify-peer

boolean

redis.servers.*.start-tls

boolean

redis.servers.*.uri

java.net.URI

Sets the Redis URI for configuration by string.

redis.servers.*.uris

java.net.URI[]

Sets the Redis URIs for cluster configuration.

🔗
Table 4. 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.password

java.lang.String

redis.timeout

java.time.Duration

redis.database

int

redis.client-name

java.lang.String

redis.ssl

boolean

redis.verify-peer

boolean

redis.start-tls

boolean

redis.uri

java.net.URI

Sets the Redis URI for configuration by string.

redis.uris

java.net.URI[]

Sets the Redis URIs for cluster configuration.

🔗
Table 5. Configuration Properties for RedisCacheConfiguration
Property Type Description

redis.caches.*.server

java.lang.String

redis.caches.*.key-serializer

java.lang.Class

redis.caches.*.value-serializer

java.lang.Class

redis.caches.*.charset

java.nio.charset.Charset

The charset used to serialize and deserialize values

redis.caches.*.expire-after-write

java.time.Duration

The cache expiration duration after writing into it.

redis.caches.*.expire-after-access

java.time.Duration

The cache expiration duration after accessing it