fun redisOptionsOf(connectionString: String? = null, connectionStrings: Iterable<String>? = null, endpoint: String? = null, endpoints: Iterable<String>? = null, masterName: String? = null, maxNestedArrays: Int? = null, maxPoolSize: Int? = null, maxPoolWaiting: Int? = null, maxWaitingHandlers: Int? = null, netClientOptions: NetClientOptions? = null, password: String? = null, poolCleanerInterval: Int? = null, poolRecycleTimeout: Int? = null, role: RedisRole? = null, type: RedisClientType? = null, useReplicas: RedisReplicas? = null): RedisOptions
A function providing a DSL for building io.vertx.redis.client.RedisOptions objects.
Redis Client Configuration options.
connectionString
- Sets a single connection string (endpoint) to use while connecting to the redis server. Will replace the previously configured connection strings.
connectionStrings
- Adds a connection string (endpoint) to use while connecting to the redis server. Only the cluster mode will consider more than 1 element. If more are provided, they are not considered by the client when in single server mode.
endpoint
- Sets a single connection string to use while connecting to the redis server. Will replace the previously configured connection strings.
endpoints
- Set the endpoints to use while connecting to the redis server. Only the cluster mode will consider more than 1 element. If more are provided, they are not considered by the client when in single server mode.
masterName
- Set the master name (only considered in HA mode).
maxNestedArrays
- Tune how much nested arrays are allowed on a redis response. This affects the parser performance.
maxPoolSize
- Tune the maximum size of the connection pool. When working with cluster or sentinel this value should be atleast the total number of cluster member (or number of sentinels + 1)
maxPoolWaiting
- Tune the maximum waiting requests for a connection from the pool.
maxWaitingHandlers
- The client will always work on pipeline mode, this means that messages can start queueing. You can control how much backlog you're willing to accept. This methods sets how much handlers is the client willing to queue.
netClientOptions
- Set the net client options to be used while connecting to the redis server. Use this to tune your connection.
password
- Set the default password for cluster/sentinel connections.
poolCleanerInterval
- Tune how often in milliseconds should the connection pool cleaner execute.
poolRecycleTimeout
- Tune when a connection should be recycled in milliseconds.
role
- Set the role name (only considered in HA mode).
type
- Set the desired client type to be created.
useReplicas
- Set whether or not to use replica nodes (only considered in Cluster mode).