Cmdlets for Redis

Build 24.0.9064

ReplicaSet Parameter (Connect-Redis Cmdlet)

This property allows you to specify multiple servers in addition to the one configured in Server and Port . Specify both a server name and port; separate servers with a comma.

Syntax

Connect-Redis -ReplicaSet string

Data Type

cstr

Default Value

""

Remarks

This property only works when EnableCluster is True. This property allows you to specify the other servers in the replica set in addition to the one configured in Server and Port. You must specify all servers in the replica set using ReplicaSet, Server, and Port.

Specify both a server name and port in ReplicaSet; separate servers with a comma. For example:

Server=localhost;Port=6379;ReplicaSet=localhost:6380,localhost:6381;

To find the primary server, the cmdlet queries the servers in ReplicaSet and the server specified by Server and Port.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9064