vertx / io.vertx.kotlin.servicediscovery.types / RedisDataSource

RedisDataSource

object RedisDataSource

Functions

getRedisClientAwait

suspend fun getRedisClientAwait(discovery: ServiceDiscovery, filter: JsonObject): RedisClient
suspend fun getRedisClientAwait(discovery: ServiceDiscovery, filter: Function<Record, Boolean>): RedisClient
suspend fun getRedisClientAwait(discovery: ServiceDiscovery, filter: JsonObject, consumerConfiguration: JsonObject): RedisClient
suspend fun getRedisClientAwait(discovery: ServiceDiscovery, filter: Function<Record, Boolean>, consumerConfiguration: JsonObject): RedisClient

Convenient method that looks for a Redis data source and provides the configured io.vertx.redis.RedisClient. The async result is marked as failed is there are no matching services, or if the lookup fails.