| Package | Description |
|---|---|
| io.lettuce.core |
The Redis client package containing
RedisClient for Redis Standalone and Redis Sentinel operations. |
| Modifier and Type | Method and Description |
|---|---|
static RedisURI.Builder |
RedisURI.builder()
Return a new
RedisURI.Builder to construct a RedisURI. |
static RedisURI.Builder |
RedisURI.builder(RedisURI source)
Create a new
RedisURI.Builder that is initialized from a plain RedisURI. |
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,
int port,
String masterId,
CharSequence password)
Set Sentinel host, port, master id and Sentinel authentication.
|
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.withAuthentication(RedisCredentialsProvider credentialsProvider)
Configures authentication.
|
RedisURI.Builder |
RedisURI.Builder.withAuthentication(RedisURI source)
Apply authentication from another
RedisURI. |
RedisURI.Builder |
RedisURI.Builder.withAuthentication(String username,
char[] password)
Configures authentication.
|
RedisURI.Builder |
RedisURI.Builder.withAuthentication(String username,
CharSequence password)
Configures authentication.
|
RedisURI.Builder |
RedisURI.Builder.withClientName(String clientName)
Configures a client name.
|
RedisURI.Builder |
RedisURI.Builder.withDatabase(int database)
Configures the database number.
|
RedisURI.Builder |
RedisURI.Builder.withHost(String host)
Adds host information to the builder.
|
RedisURI.Builder |
RedisURI.Builder.withLibraryName(String libraryName)
Configures a library name.
|
RedisURI.Builder |
RedisURI.Builder.withLibraryVersion(String libraryVersion)
Configures a library version.
|
RedisURI.Builder |
RedisURI.Builder.withPassword(char[] password)
Configures authentication.
|
RedisURI.Builder |
RedisURI.Builder.withPassword(CharSequence password)
Configures authentication.
|
RedisURI.Builder |
RedisURI.Builder.withPort(int port)
Adds port information to the builder.
|
RedisURI.Builder |
RedisURI.Builder.withSentinel(RedisURI redisURI)
Add a withSentinel RedisURI to the existing 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.withSentinel(String host,
int port,
CharSequence password)
Add a withSentinel host/port and Sentinel authentication to the existing builder.
|
RedisURI.Builder |
RedisURI.Builder.withSentinelMasterId(String sentinelMasterId)
Configures a sentinel master Id.
|
RedisURI.Builder |
RedisURI.Builder.withSsl(boolean ssl)
Adds ssl information to the builder.
|
RedisURI.Builder |
RedisURI.Builder.withSsl(RedisURI source)
Apply authentication from another
RedisURI. |
RedisURI.Builder |
RedisURI.Builder.withStartTls(boolean startTls)
Enables/disables StartTLS when using SSL.
|
RedisURI.Builder |
RedisURI.Builder.withTimeout(Duration timeout)
Configures a timeout.
|
RedisURI.Builder |
RedisURI.Builder.withVerifyPeer(boolean verifyPeer)
Enables/disables peer verification.
|
RedisURI.Builder |
RedisURI.Builder.withVerifyPeer(SslVerifyMode verifyMode)
Configures peer verification mode.
|
Copyright © 2025 lettuce.io. All rights reserved.