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
Nested Classes -
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueThe Redis client name.- Default:
- ""
-