ParallelMode Parameter (Connect-Redis Cmdlet)
This option sets whether the provider should use multiple connections when connecting to Redis.
Syntax
Connect-Redis -ParallelMode SwitchParameter
Data Type
bool
Default Value
false
Remarks
The default is that parallel mode is disabled, which means that the cmdlet will use only one connection when communicating with Redis. This works well for smaller databases, but can cause performance and memory usage issues on larger databases.
If parallel mode is enabled, the cmdlet will open different connections to Redis for discovering keys and reading data. This makes interacting with larger databases more efficient but can add overhead for smaller databases.
If parallel mode is enabled, you can tune how much memory is used by the cmdlet by using the hidden MaxPageSize property (see Other). The default value is 5, but you can increase it to make the cmdlet faster or decrease it to make the cmdlet use less memory.