Class RedisConfig


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

      • defaultRedisClient

        @ConfigItem(name="<<parent>>")
        public RedisClientConfig defaultRedisClient
        The default redis client
      • namedRedisClients

        @ConfigItem(name="<<parent>>")
        @ConfigDocMapKey("redis-client-name")
        public Map<String,​RedisClientConfig> namedRedisClients
        Configures additional (named) Redis clients.

        Each client has a unique name which must be identified to select the right client. 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 Redis, Redis, RedisAPI and RedisAPI beans.

         {
             @code
             @RedisClientName("client1")
             @Inject
             RedisAPI redis;
         }
         
    • Constructor Detail

      • RedisConfig

        public RedisConfig()
    • Method Detail

      • isDefaultClient

        public static boolean isDefaultClient​(String name)