vertx / io.vertx.kotlin.redis.client / redisOptionsOf

# redisOptionsOf

`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, poolCleanerInterval: Int? = null, poolRecycleTimeout: Int? = null, role: RedisRole? = null, type: RedisClientType? = null, useSlave: RedisSlaves? = null): RedisOptions`

A function providing a DSL for building io.vertx.redis.client.RedisOptions objects.

Redis Client Configuration options.

### Parameters

`connectionString` - Sets a single connection string (endpoint) to use while connecting to the redis server. Will replace the previously configured connection strings. Does not support rediss (redis over ssl scheme) for now.

`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. Does not support rediss (redis over ssl scheme) for now.

`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.

`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.

`useSlave` - Set whether or not to use slave nodes (only considered in Cluster mode).