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 本製品 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 本製品 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 本製品 by using the hidden MaxPageSize property (see Other). The default value is 5, but you can increase it to make the 本製品 faster or decrease it to make the 本製品 use less memory.