Uses of Class
io.lettuce.core.RedisURI.Builder
| Package | Description |
|---|---|
| io.lettuce.core |
The Redis client package containing
RedisClient for Redis Standalone and Redis Sentinel operations. |
-
Uses of RedisURI.Builder in io.lettuce.core
Methods in io.lettuce.core that return RedisURI.Builder Modifier and Type Method Description static RedisURI.BuilderRedisURI. builder()Return a newRedisURI.Builderto construct aRedisURI.static RedisURI.BuilderRedisURI. builder(RedisURI source)Create a newRedisURI.Builderthat is initialized from a plainRedisURI.static RedisURI.BuilderRedisURI.Builder. redis(String host)Set Redis host.static RedisURI.BuilderRedisURI.Builder. redis(String host, int port)Set Redis host and port.static RedisURI.BuilderRedisURI.Builder. sentinel(String host)Set Sentinel host.static RedisURI.BuilderRedisURI.Builder. sentinel(String host, int port)Set Sentinel host and port.static RedisURI.BuilderRedisURI.Builder. sentinel(String host, int port, String masterId)Set Sentinel host, port and master id.static RedisURI.BuilderRedisURI.Builder. sentinel(String host, int port, String masterId, CharSequence password)Deprecated.static RedisURI.BuilderRedisURI.Builder. sentinel(String host, String masterId)Set Sentinel host and master id.static RedisURI.BuilderRedisURI.Builder. socket(String socket)Set Redis socket.RedisURI.BuilderRedisURI.Builder. withAuthentication(RedisURI source)Apply authentication from anotherRedisURI.RedisURI.BuilderRedisURI.Builder. withAuthentication(String username, char[] password)Configures authentication.RedisURI.BuilderRedisURI.Builder. withAuthentication(String username, CharSequence password)Configures authentication.RedisURI.BuilderRedisURI.Builder. withClientName(String clientName)Configures a client name.RedisURI.BuilderRedisURI.Builder. withDatabase(int database)Configures the database number.RedisURI.BuilderRedisURI.Builder. withHost(String host)Adds host information to the builder.RedisURI.BuilderRedisURI.Builder. withPassword(char[] password)Configures authentication.RedisURI.BuilderRedisURI.Builder. withPassword(CharSequence password)Configures authentication.RedisURI.BuilderRedisURI.Builder. withPassword(String password)Deprecated.since 6.0.RedisURI.BuilderRedisURI.Builder. withPort(int port)Adds port information to the builder.RedisURI.BuilderRedisURI.Builder. withSentinel(RedisURI redisURI)Add a withSentinel RedisURI to the existing builder.RedisURI.BuilderRedisURI.Builder. withSentinel(String host)Add a withSentinel host to the existing builder.RedisURI.BuilderRedisURI.Builder. withSentinel(String host, int port)Add a withSentinel host/port to the existing builder.RedisURI.BuilderRedisURI.Builder. withSentinel(String host, int port, CharSequence password)Add a withSentinel host/port and Sentinel authentication to the existing builder.RedisURI.BuilderRedisURI.Builder. withSentinelMasterId(String sentinelMasterId)Configures a sentinel master Id.RedisURI.BuilderRedisURI.Builder. withSsl(boolean ssl)Adds ssl information to the builder.RedisURI.BuilderRedisURI.Builder. withSsl(RedisURI source)Apply authentication from anotherRedisURI.RedisURI.BuilderRedisURI.Builder. withStartTls(boolean startTls)Enables/disables StartTLS when using SSL.RedisURI.BuilderRedisURI.Builder. withTimeout(Duration timeout)Configures a timeout.RedisURI.BuilderRedisURI.Builder. withVerifyPeer(boolean verifyPeer)Enables/disables peer verification.RedisURI.BuilderRedisURI.Builder. withVerifyPeer(SslVerifyMode verifyMode)Configures peer verification mode.
sentinel(String, int, String)andwithAuthentication(String, CharSequence)instead.