Interface RedisConfig


  • @ConfigMapping(prefix="quarkus.redis")
    @ConfigRoot(phase=RUN_TIME)
    public interface RedisConfig
    • Method Detail

      • defaultRedisClient

        @WithParentName
        RedisClientConfig defaultRedisClient()
        The default redis client
      • namedRedisClients

        @WithParentName
        @ConfigDocMapKey("redis-client-name")
        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;
         }
         
      • isDefaultClient

        static boolean isDefaultClient​(String name)