Package io.quarkus.redis.client
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:6379Then to inject the proper
redisClient
, you would need to use RedisClientName
like indicated below:
@Inject @RedisClientName("client1") RedisClient client;
-
Nested Class Summary
-
Optional Element Summary
-
Element Details
-
value
String valueThe Redis client name.- Default:
- ""
-