class RedisOptions extends NetClientOptions
This object controls the connection setting to the Redis Server. There is no need to specify most of the settings since it has built the following sensible defaults:
* encoding
: UTF-8
* host
: localhost
* port
: 6379
* tcpKeepAlive
: true
* tcpNoDelay
: true
* binary
: false
However there are two extra properties that have no defaults since they are optional:
* auth
* select
The usage of this two extra properties is to setup required authentication and optionally the selection of the active database at connection time. If you define this extra properties on every connection to Redis server this client will perform the authentication handshake and database selection, however if you don't do this and call io.vertx.scala.redis.RedisClient yourself in case of connection failure the client will not be able to perform the correct authentication handshake.
- Alphabetic
- By Inheritance
- RedisOptions
- NetClientOptions
- ClientOptionsBase
- TCPSSLOptions
- NetworkOptions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RedisOptions(_asJava: redis.RedisOptions)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addCrlPath(value: String): RedisOptions
Add a CRL path
Add a CRL path
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
addCrlValue(value: Buffer): RedisOptions
Add a CRL value
Add a CRL value
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
addEnabledCipherSuite(value: String): RedisOptions
Add an enabled cipher suite, appended to the ordered suites.
Add an enabled cipher suite, appended to the ordered suites.
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
addEnabledSecureTransportProtocol(value: String): RedisOptions
Sets the list of enabled SSL/TLS protocols.
Sets the list of enabled SSL/TLS protocols.
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
addSentinel(value: String): RedisOptions
Set the list of Sentinels.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJava: redis.RedisOptions
- Definition Classes
- RedisOptions → NetClientOptions
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def getAddress: String
- def getAuth: String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getConnectTimeout: Int
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase
-
def
getCrlPaths: Buffer[String]
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
getCrlValues: Buffer[Buffer]
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
- def getDomainSocketAddress: String
-
def
getEnabledCipherSuites: Set[String]
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
getEnabledSecureTransportProtocols: Set[String]
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
- def getEncoding: String
- def getHost: String
-
def
getHostnameVerificationAlgorithm: String
- Definition Classes
- RedisOptions → NetClientOptions
-
def
getIdleTimeout: Int
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
getIdleTimeoutUnit: TimeUnit
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
getJdkSslEngineOptions: JdkSSLEngineOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
getKeyStoreOptions: JksOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
getLocalAddress: String
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase
-
def
getLogActivity: Boolean
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions → NetworkOptions
- def getMasterName: String
-
def
getMetricsName: String
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase
-
def
getOpenSslEngineOptions: OpenSSLEngineOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
getPemKeyCertOptions: PemKeyCertOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
getPemTrustOptions: PemTrustOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
getPfxKeyCertOptions: PfxOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
getPfxTrustOptions: PfxOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
- def getPort: Int
-
def
getProxyOptions: ProxyOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase
-
def
getReceiveBufferSize: Int
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions → NetworkOptions
-
def
getReconnectAttempts: Int
- Definition Classes
- RedisOptions → NetClientOptions
-
def
getReconnectInterval: Long
- Definition Classes
- RedisOptions → NetClientOptions
- def getSelect: Int
-
def
getSendBufferSize: Int
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions → NetworkOptions
- def getSentinels: Buffer[String]
-
def
getSoLinger: Int
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
getTrafficClass: Int
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions → NetworkOptions
-
def
getTrustStoreOptions: JksOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isBinary: Boolean
- def isDomainSocket: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isReuseAddress: Boolean
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions → NetworkOptions
-
def
isReusePort: Boolean
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions → NetworkOptions
-
def
isSsl: Boolean
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
isTcpCork: Boolean
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
isTcpFastOpen: Boolean
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
isTcpKeepAlive: Boolean
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
isTcpNoDelay: Boolean
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
isTcpQuickAck: Boolean
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
isTrustAll: Boolean
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase
-
def
isUseAlpn: Boolean
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
isUsePooledBuffers: Boolean
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
setAddress(value: String): RedisOptions
Set the eventbus address prefix for
PUB/SUB
.Set the eventbus address prefix for
PUB/SUB
. * @param address address prefix. -
def
setAuth(value: String): RedisOptions
Set the password for authentication at connection time.
-
def
setBinary(value: Boolean): RedisOptions
Set the messages to/from redis as binary, default
false
.Set the messages to/from redis as binary, default
false
. * @param binary use binary messages -
def
setConnectTimeout(value: Int): RedisOptions
Set the connect timeout
Set the connect timeout
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase
-
def
setDomainSocket(value: Boolean): RedisOptions
Set the domain socket enabled option, default
false
. -
def
setDomainSocketAddress(value: String): RedisOptions
Set the domain socket address where the Redis server is listening.
-
def
setEnabledSecureTransportProtocols(value: Set[String]): RedisOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setEncoding(value: String): RedisOptions
Set the user defined character encoding, e.g.:
iso-8859-1
.Set the user defined character encoding, e.g.:
iso-8859-1
. * @param encoding the user character encoding -
def
setHost(value: String): RedisOptions
Set the host name where the Redis server is listening.
Set the host name where the Redis server is listening. * @param host host name
-
def
setHostnameVerificationAlgorithm(value: String): RedisOptions
Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String
Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String
- Definition Classes
- RedisOptions → NetClientOptions
-
def
setIdleTimeout(value: Int): RedisOptions
Set the idle timeout, default time unit is seconds.
Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout.
If you want change default time unit, use NetClientOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setIdleTimeoutUnit(value: TimeUnit): RedisOptions
Set the idle timeout unit.
Set the idle timeout unit. If not specified, default is seconds.
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setJdkSslEngineOptions(value: JdkSSLEngineOptions): RedisOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setKeyStoreOptions(value: JksOptions): RedisOptions
Set the key/cert options in jks format, aka Java keystore.
Set the key/cert options in jks format, aka Java keystore.
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setLocalAddress(value: String): RedisOptions
Set the local interface to bind for network connections.
Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null.
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase
-
def
setLogActivity(value: Boolean): RedisOptions
Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.
Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions → NetworkOptions
-
def
setMasterName(value: String): RedisOptions
Set name of Redis master (used with Sentinel).
-
def
setMetricsName(value: String): RedisOptions
Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.
Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase
-
def
setOpenSslEngineOptions(value: OpenSSLEngineOptions): RedisOptions
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setPemKeyCertOptions(value: PemKeyCertOptions): RedisOptions
Set the key/cert store options in pem format.
Set the key/cert store options in pem format.
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setPemTrustOptions(value: PemTrustOptions): RedisOptions
Set the trust options in pem format
Set the trust options in pem format
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setPfxKeyCertOptions(value: PfxOptions): RedisOptions
Set the key/cert options in pfx format.
Set the key/cert options in pfx format.
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setPfxTrustOptions(value: PfxOptions): RedisOptions
Set the trust options in pfx format
Set the trust options in pfx format
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setPort(value: Int): RedisOptions
Set the tcp port where the Redis server is listening.
-
def
setProxyOptions(value: ProxyOptions): RedisOptions
Set proxy options for connections via CONNECT proxy (e.g.
Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy.
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase
-
def
setReceiveBufferSize(value: Int): RedisOptions
Set the TCP receive buffer size
Set the TCP receive buffer size
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions → NetworkOptions
-
def
setReconnectAttempts(value: Int): RedisOptions
Set the value of reconnect attempts
Set the value of reconnect attempts
- Definition Classes
- RedisOptions → NetClientOptions
-
def
setReconnectInterval(value: Long): RedisOptions
Set the reconnect interval
Set the reconnect interval
- Definition Classes
- RedisOptions → NetClientOptions
-
def
setReuseAddress(value: Boolean): RedisOptions
Set the value of reuse address
Set the value of reuse address
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions → NetworkOptions
-
def
setReusePort(value: Boolean): RedisOptions
Set the value of reuse port.
Set the value of reuse port.
This is only supported by native transports.
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions → NetworkOptions
-
def
setSelect(value: Int): RedisOptions
Set the database to select at connection time.
Set the database to select at connection time. * @param select database id
-
def
setSendBufferSize(value: Int): RedisOptions
Set the TCP send buffer size
Set the TCP send buffer size
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions → NetworkOptions
- def setSentinels(value: Buffer[String]): RedisOptions
-
def
setSoLinger(value: Int): RedisOptions
Set whether SO_linger keep alive is enabled
Set whether SO_linger keep alive is enabled
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setSsl(value: Boolean): RedisOptions
Set whether SSL/TLS is enabled
Set whether SSL/TLS is enabled
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setTcpCork(value: Boolean): RedisOptions
Enable the
TCP_CORK
option - only with linux native transport.Enable the
TCP_CORK
option - only with linux native transport.- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setTcpFastOpen(value: Boolean): RedisOptions
Enable the
TCP_FASTOPEN
option - only with linux native transport.Enable the
TCP_FASTOPEN
option - only with linux native transport.- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setTcpKeepAlive(value: Boolean): RedisOptions
Set whether TCP keep alive is enabled
Set whether TCP keep alive is enabled
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setTcpNoDelay(value: Boolean): RedisOptions
Set whether TCP no delay is enabled
Set whether TCP no delay is enabled
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setTcpQuickAck(value: Boolean): RedisOptions
Enable the
TCP_QUICKACK
option - only with linux native transport.Enable the
TCP_QUICKACK
option - only with linux native transport.- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setTrafficClass(value: Int): RedisOptions
Set the value of traffic class
Set the value of traffic class
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions → NetworkOptions
-
def
setTrustAll(value: Boolean): RedisOptions
Set whether all server certificates should be trusted
Set whether all server certificates should be trusted
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase
-
def
setTrustStoreOptions(value: JksOptions): RedisOptions
Set the trust options in jks format, aka Java truststore
Set the trust options in jks format, aka Java truststore
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setUseAlpn(value: Boolean): RedisOptions
Set the ALPN usage.
Set the ALPN usage.
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
def
setUsePooledBuffers(value: Boolean): RedisOptions
Set whether Netty pooled buffers are enabled
Set whether Netty pooled buffers are enabled
- Definition Classes
- RedisOptions → NetClientOptions → ClientOptionsBase → TCPSSLOptions
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )