Annotation Interface 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:
     &#64Inject
     &#64RedisClientName("client1")
     RedisClient client;
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The Redis client name.
  • Element Details

    • value

      String value
      The Redis client name.
      Default:
      ""