Class RedisConfig


  • @ConfigRoot(phase=RUN_TIME,
                name="redis")
    public class RedisConfig
    extends Object
    • Field Detail

      • 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 the RedisClient or ReactiveRedisClient.

         
         &#64;RedisClientName("client1")
         &#64;Inject
         RedisClient redisClient1
         
         
    • Constructor Detail

      • RedisConfig

        public RedisConfig()