Package | Description |
---|---|
com.lambdaworks.redis |
The redis client package containing
RedisClient for regular and sentinel operations. |
Modifier and Type | Method and Description |
---|---|
static RedisURI.Builder |
RedisURI.Builder.redis(String host)
Set Redis host.
|
static RedisURI.Builder |
RedisURI.Builder.redis(String host,
int port)
Set Redis host and port.
|
static RedisURI.Builder |
RedisURI.Builder.sentinel(String host)
Set Sentinel host.
|
static RedisURI.Builder |
RedisURI.Builder.sentinel(String host,
int port)
Set Sentinel host and port.
|
static RedisURI.Builder |
RedisURI.Builder.sentinel(String host,
int port,
String masterId)
Set Sentinel host, port and master id.
|
static RedisURI.Builder |
RedisURI.Builder.sentinel(String host,
String masterId)
Set Sentinel host and master id.
|
static RedisURI.Builder |
RedisURI.Builder.socket(String socket)
Set Redis socket.
|
RedisURI.Builder |
RedisURI.Builder.withDatabase(int database)
Adds database selection.
|
RedisURI.Builder |
RedisURI.Builder.withPassword(String password)
Adds authentication.
|
RedisURI.Builder |
RedisURI.Builder.withPort(int port)
Adds port information to the builder.
|
RedisURI.Builder |
RedisURI.Builder.withSentinel(String host)
Add a withSentinel host to the existing builder.
|
RedisURI.Builder |
RedisURI.Builder.withSentinel(String host,
int port)
Add a withSentinel host/port to the existing builder.
|
RedisURI.Builder |
RedisURI.Builder.withSentinelMasterId(String sentinelMasterId)
Adds a sentinel master Id.
|
RedisURI.Builder |
RedisURI.Builder.withSsl(boolean ssl)
Adds ssl information to the builder.
|
RedisURI.Builder |
RedisURI.Builder.withStartTls(boolean startTls)
Enables/disables StartTLS when using SSL.
|
RedisURI.Builder |
RedisURI.Builder.withTimeout(long timeout,
TimeUnit unit)
Adds timeout.
|
RedisURI.Builder |
RedisURI.Builder.withVerifyPeer(boolean verifyPeer)
Enables/disables peer verification.
|
Copyright © 2016. All rights reserved.