Interface RedisClusterOptions<M, F, S>

Type Parameters

Hierarchy

Properties

defaults?: Partial<RedisClusterClientOptions>

Default values used for every client in the cluster. Use this to specify global values, for example: ACL credentials, timeouts, TLS configuration etc.

functions?: F
maxCommandRedirections?: number

The maximum number of times a command will be redirected due to MOVED or ASK errors.

minimizeConnections?: boolean

When true, .connect() will only discover the cluster topology, without actually connecting to all the nodes. Useful for short-term or PubSub-only connections.

modules?: M
nodeAddressMap?: NodeAddressMap

Mapping between the addresses in the cluster (see CLUSTER SHARDS) and the addresses the client should connect to Useful when the cluster is running on another network

Should contain details for some of the cluster nodes that the client will use to discover the "cluster topology". We recommend including details for at least 3 nodes here.

scripts?: S
useReplicas?: boolean

When true, distribute load by executing readonly commands (such as GET, GEOSEARCH, etc.) across all cluster nodes. When false, only use master nodes.

Generated using TypeDoc