Package io.quarkus.redis.client
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 inapplication.properties
:quarkus.redis.client1.hosts=localhost:6379
Then to inject the properredisClient
, you would need to useRedisClientName
like indicated below:@Inject @RedisClientName("client1") RedisClient client;
-
-
Element Detail
-
value
String value
The Redis client name.- Default:
- ""
-
-