ch.sourcemotion.vertx.redis.client.heimdall.RedisHeimdall.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vertx-redis-client-heimdall Show documentation
Show all versions of vertx-redis-client-heimdall Show documentation
Redis client based on the official one https://vertx.io/docs/vertx-redis-client/java/. This client will provide some additional features like reconnect capabilities, Event bus events on reconnecting related activities.
The newest version!
package ch.sourcemotion.vertx.redis.client.heimdall
import ch.sourcemotion.vertx.redis.client.heimdall.impl.RedisHeimdallImpl
import io.vertx.core.Vertx
import io.vertx.redis.client.Redis
/**
* Redis client for common use. Additionally reconnection is handled automatically.
* Please visit README for more detailed information.
*/
interface RedisHeimdall : Redis, AutoCloseable {
companion object {
@JvmStatic
fun create(vertx: Vertx, options: RedisHeimdallOptions): RedisHeimdall = RedisHeimdallImpl(vertx, options)
@JvmStatic
fun createLight(vertx: Vertx, options: RedisHeimdallOptions): RedisHeimdall = RedisHeimdallLight(vertx, options)
}
}