Package io.quarkus.redis.client.runtime
Class RedisConfig
- java.lang.Object
-
- io.quarkus.redis.client.runtime.RedisConfig
-
@ConfigRoot(phase=RUN_TIME, name="redis") public class RedisConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RedisConfig.RedisConfiguration
-
Field Summary
Fields Modifier and Type Field Description (package private) Map<String,RedisConfig.RedisConfiguration>
additionalRedisClients
Configures additional Redis client connections.RedisConfig.RedisConfiguration
defaultClient
The default redis clientstatic String
HOSTS_CONFIG_NAME
static String
REDIS_CONFIG_ROOT_NAME
-
Constructor Summary
Constructors Constructor Description RedisConfig()
-
-
-
Field Detail
-
REDIS_CONFIG_ROOT_NAME
public static final String REDIS_CONFIG_ROOT_NAME
- See Also:
- Constant Field Values
-
HOSTS_CONFIG_NAME
public static final String HOSTS_CONFIG_NAME
- See Also:
- Constant Field Values
-
defaultClient
@ConfigItem(name="<<parent>>") public RedisConfig.RedisConfiguration defaultClient
The default redis client
-
additionalRedisClients
@ConfigItem(name="<<parent>>") Map<String,RedisConfig.RedisConfiguration> additionalRedisClients
Configures additional Redis client connections.Each client has a unique identifier which must be identified to select the right connection. For example:
quarkus.redis.client1.hosts = redis://localhost:6379 quarkus.redis.client2.hosts = redis://localhost:6380
And then use the
RedisClientName
annotation to select theRedisClient
orReactiveRedisClient
.@RedisClientName("client1") @Inject RedisClient redisClient1
-
-