public abstract class AbstractRedisConfiguration
extends io.lettuce.core.RedisURI
DEFAULT_REDIS_PORT, DEFAULT_SENTINEL_PORT, DEFAULT_TIMEOUT, DEFAULT_TIMEOUT_DURATION, DEFAULT_TIMEOUT_UNIT, PARAMETER_NAME_CLIENT_NAME, PARAMETER_NAME_DATABASE, PARAMETER_NAME_DATABASE_ALT, PARAMETER_NAME_SENTINEL_MASTER_ID, PARAMETER_NAME_TIMEOUT, TIME_UNIT_MAP, URI_SCHEME_REDIS, URI_SCHEME_REDIS_SECURE, URI_SCHEME_REDIS_SECURE_ALT, URI_SCHEME_REDIS_SENTINEL, URI_SCHEME_REDIS_SOCKET, URI_SCHEME_REDIS_SOCKET_ALT, URI_SCHEME_REDIS_TLS_ALT
Modifier | Constructor and Description |
---|---|
protected |
AbstractRedisConfiguration()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Optional<io.lettuce.core.RedisURI> |
getUri() |
List<io.lettuce.core.RedisURI> |
getUris() |
void |
setUri(URI uri)
Sets the Redis URI for configuration by string.
|
void |
setUris(URI... uris)
Sets the Redis URIs for cluster configuration.
|
builder, create, create, create, equals, getClientName, getDatabase, getHost, getPassword, getPort, getResolvedAddress, getSentinelMasterId, getSentinels, getSocket, getTimeout, hashCode, isSsl, isStartTls, isVerifyPeer, setClientName, setDatabase, setHost, setPassword, setPassword, setPort, setSentinelMasterId, setSocket, setSsl, setStartTls, setTimeout, setVerifyPeer, toString, toURI
public Optional<io.lettuce.core.RedisURI> getUri()
public void setUri(URI uri)
uri
- The URIpublic List<io.lettuce.core.RedisURI> getUris()
public void setUris(URI... uris)
uris
- The URI