Annotation Type RedisClientName


  • @Target({TYPE,METHOD,FIELD,PARAMETER})
    @Retention(RUNTIME)
    @Documented
    @Qualifier
    public @interface RedisClientName
    Marker annotation to select the Redis client. For example, if the Redis connection is configured like so in application.properties:
     quarkus.redis.client1.hosts=localhost:6379
     
    Then to inject the proper redisClient, you would need to use RedisClientName like indicated below:
         @Inject
         @RedisClientName("client1")
         RedisClient client;
     
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String value
      The Redis client name.
    • Element Detail

      • value

        String value
        The Redis client name.
        Default:
        ""