public interface Redis
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the client and terminates any connection.
|
default Future<RedisConnection> |
connect()
Connects to the redis server.
|
Redis |
connect(Handler<AsyncResult<RedisConnection>> handler)
Connects to the redis server.
|
static Redis |
createClient(Vertx vertx)
Create a new redis client using the default client options.
|
static Redis |
createClient(Vertx vertx,
RedisOptions options)
Create a new redis client using the given client options.
|
static Redis |
createClient(Vertx vertx,
String endpoint)
Create a new redis client using the default client options.
|
static Redis createClient(Vertx vertx)
vertx - the vertx instancestatic Redis createClient(Vertx vertx, String endpoint)
endpoint - the server address to connect tovertx - the vertx instancestatic Redis createClient(Vertx vertx, RedisOptions options)
vertx - the vertx instanceoptions - the user provided optionsRedis connect(Handler<AsyncResult<RedisConnection>> handler)
handler - the async result handlerdefault Future<RedisConnection> connect()
void close()
Copyright © 2019 Eclipse. All rights reserved.