Class DefaultRedisConnectionPoolConfiguration
java.lang.Object
io.micronaut.configuration.lettuce.AbstractRedisConnectionPoolConfiguration
io.micronaut.configuration.lettuce.DefaultRedisConnectionPoolConfiguration
@ConfigurationProperties("redis.pool")
@Requires(classes=io.micronaut.cache.SyncCache.class,
property="redis.pool.enabled",
defaultValue="false",
notEquals="false")
@Primary
public class DefaultRedisConnectionPoolConfiguration
extends AbstractRedisConnectionPoolConfiguration
Allows configuration of redis connection pool.
- Since:
- 5.3.0
- Author:
- Graeme Rocher, Illia Kovalov
-
Field Summary
Fields inherited from class io.micronaut.configuration.lettuce.AbstractRedisConnectionPoolConfiguration
enabled, maxIdle, maxTotal, minIdle
-
Constructor Summary
ConstructorDescriptionDefaultRedisConnectionPoolConfiguration
(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionio.lettuce.core.support.BoundedPoolConfig
Methods inherited from class io.micronaut.configuration.lettuce.AbstractRedisConnectionPoolConfiguration
getEnabled, getMaxIdle, getMaxTotal, getMinIdle
-
Constructor Details
-
DefaultRedisConnectionPoolConfiguration
public DefaultRedisConnectionPoolConfiguration(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration) Constructor.- Parameters:
applicationConfiguration
- applicationConfiguration
-
-
Method Details
-
getBoundedPoolConfig
public io.lettuce.core.support.BoundedPoolConfig getBoundedPoolConfig()- Returns:
- BoundedPoolConfig
-