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: <p> * `encoding`: `UTF-8` * `host`: `localhost` * `port`: 6379 * `tcpKeepAlive`: true * `tcpNoDelay`: true * `binary`: false <p> However there are two extra properties that have no defaults since they are optional: <p> * `auth` * `select` <p> 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 @see \io\vertx\jphp\redis\RedisClient::auth yourself in case of connection failure the client will not be able to perform the correct authentication handshake.
package |
Default |
---|
__construct( $networkOptions = null)
mixed | null
addCrlPath( $crlPaths) : $this
string
$this
addCrlValue( $crlValues) : $this
Buffer
$this
addEnabledCipherSuite( $enabledCipherSuites) : $this
string
$this
addEnabledSecureTransportProtocol( $enabledSecureTransportProtocols) : $this
string
$this
addSentinel( $sentinels) : $this
string
$this
getAddress() : string
string
getAuth() : string
string
getConnectTimeout() : integer
integer
getCrlPaths() : array
array
getCrlValues() : array
array
getDomainSocketAddress() : string
string
getEnabledCipherSuites() : array
array
getEnabledSecureTransportProtocols() : array
array
getEncoding() : string
string
getHost() : string
string
getHostnameVerificationAlgorithm() : string
string
getIdleTimeout() : integer
integer
getIdleTimeoutUnit() : string
string
getJdkSslEngineOptions() : \io\vertx\jphp\core\net\JdkSSLEngineOptions
getKeyStoreOptions() : \io\vertx\jphp\core\net\JksOptions
getLocalAddress() : string
string
getLogActivity() : boolean
boolean
getMasterName() : string
string
getMetricsName() : string
string
getOpenSslEngineOptions() : \io\vertx\jphp\core\net\OpenSSLEngineOptions
getPemKeyCertOptions() : \io\vertx\jphp\core\net\PemKeyCertOptions
getPemTrustOptions() : \io\vertx\jphp\core\net\PemTrustOptions
getPfxKeyCertOptions() : \io\vertx\jphp\core\net\PfxOptions
getPfxTrustOptions() : \io\vertx\jphp\core\net\PfxOptions
getPort() : integer
integer
getProxyOptions() : \io\vertx\jphp\core\net\ProxyOptions
getReceiveBufferSize() : integer
integer
getReconnectAttempts() : integer
integer
getReconnectInterval() : integer
integer
getSelect() : integer
integer
getSendBufferSize() : integer
integer
getSentinels() : array
array
getSoLinger() : integer
integer
getTrafficClass() : integer
integer
getTrustStoreOptions() : \io\vertx\jphp\core\net\JksOptions
isBinary() : boolean
boolean
isDomainSocket() : boolean
boolean
isReuseAddress() : boolean
boolean
isReusePort() : boolean
boolean
isSsl() : boolean
boolean
isTcpCork() : boolean
boolean
isTcpFastOpen() : boolean
boolean
isTcpKeepAlive() : boolean
boolean
isTcpNoDelay() : boolean
boolean
isTcpQuickAck() : boolean
boolean
isTrustAll() : boolean
boolean
isUseAlpn() : boolean
boolean
isUsePooledBuffers() : boolean
boolean
setAddress( $address) : $this
string
$this
setAuth( $auth) : $this
string
$this
setBinary( $binary) : $this
boolean
$this
setConnectTimeout( $connectTimeout) : $this
integer
$this
setDomainSocket( $domainSocket) : $this
boolean
$this
setDomainSocketAddress( $domainSocketAddress) : $this
string
$this
setEnabledSecureTransportProtocols( $enabledSecureTransportProtocols) : $this
string
$this
setEncoding( $encoding) : $this
string
$this
setHost( $host) : $this
string
$this
setHostnameVerificationAlgorithm( $hostnameVerificationAlgorithm) : $this
string
$this
setIdleTimeout( $idleTimeout) : $this
integer
$this
setIdleTimeoutUnit( $idleTimeoutUnit) : $this
string
$this
setJdkSslEngineOptions( $jdkSslEngineOptions) : $this
JdkSSLEngineOptions|array
$this
setKeyStoreOptions( $keyStoreOptions) : $this
JksOptions|array
$this
setLocalAddress( $localAddress) : $this
string
$this
setLogActivity( $logActivity) : $this
boolean
$this
setMasterName( $masterName) : $this
string
$this
setMetricsName( $metricsName) : $this
string
$this
setOpenSslEngineOptions( $openSslEngineOptions) : $this
OpenSSLEngineOptions|array
$this
setPemKeyCertOptions( $pemKeyCertOptions) : $this
PemKeyCertOptions|array
$this
setPemTrustOptions( $pemTrustOptions) : $this
PemTrustOptions|array
$this
setPfxKeyCertOptions( $pfxKeyCertOptions) : $this
PfxOptions|array
$this
setPfxTrustOptions( $pfxTrustOptions) : $this
PfxOptions|array
$this
setPort( $port) : $this
integer
$this
setProxyOptions( $proxyOptions) : $this
ProxyOptions|array
$this
setReceiveBufferSize( $receiveBufferSize) : $this
integer
$this
setReconnectAttempts( $reconnectAttempts) : $this
integer
$this
setReconnectInterval( $reconnectInterval) : $this
integer
$this
setReuseAddress( $reuseAddress) : $this
boolean
$this
setReusePort( $reusePort) : $this
boolean
$this
setSelect( $select) : $this
integer
$this
setSendBufferSize( $sendBufferSize) : $this
integer
$this
setSentinels( $sentinels) : $this
string
$this
setSoLinger( $soLinger) : $this
integer
$this
setSsl( $ssl) : $this
boolean
$this
setTcpCork( $tcpCork) : $this
boolean
$this
setTcpFastOpen( $tcpFastOpen) : $this
boolean
$this
setTcpKeepAlive( $tcpKeepAlive) : $this
boolean
$this
setTcpNoDelay( $tcpNoDelay) : $this
boolean
$this
setTcpQuickAck( $tcpQuickAck) : $this
boolean
$this
setTrafficClass( $trafficClass) : $this
integer
$this
setTrustAll( $trustAll) : $this
boolean
$this
setTrustStoreOptions( $trustStoreOptions) : $this
JksOptions|array
$this
setUseAlpn( $useAlpn) : $this
boolean
$this
setUsePooledBuffers( $usePooledBuffers) : $this
boolean
$this