| Package | Description |
|---|---|
| redis.clients.jedis | |
| redis.clients.jedis.builders |
| Modifier and Type | Class and Description |
|---|---|
static class |
JedisPooled.Builder
Deprecated.
Fluent builder for
JedisPooled (standalone). |
static class |
RedisClient.Builder
Fluent builder for
RedisClient (standalone). |
| Modifier and Type | Method and Description |
|---|---|
StandaloneClientBuilder<C> |
StandaloneClientBuilder.fromURI(java.lang.String uriString)
Deprecated.
Use
hostAndPort(String, int) combined with
AbstractClientBuilder.clientConfig(JedisClientConfig) for explicit configuration. This method
will be removed in Jedis 8.0.0.
Migration example:
// Old (deprecated):
builder.fromURI("redis://user:pass@localhost:6379/2")
// New (recommended):
builder.hostAndPort("localhost", 6379)
.clientConfig(DefaultJedisClientConfig.builder()
.user("user")
.password("pass")
.database(2)
.build())
|
StandaloneClientBuilder<C> |
StandaloneClientBuilder.fromURI(java.net.URI uri)
Deprecated.
Use
hostAndPort(HostAndPort) combined with
AbstractClientBuilder.clientConfig(JedisClientConfig) for explicit configuration. This method
will be removed in Jedis 8.0.0. See fromURI(String) for migration example. |
StandaloneClientBuilder<C> |
StandaloneClientBuilder.hostAndPort(HostAndPort hostAndPort)
Sets the Redis server host and port.
|
StandaloneClientBuilder<C> |
StandaloneClientBuilder.hostAndPort(java.lang.String host,
int port)
Sets the Redis server host and port.
|
protected StandaloneClientBuilder<C> |
StandaloneClientBuilder.self() |
Copyright © 2026. All rights reserved.