The `ConfigurationOptions` object has a wide range of properties, all of which are fully documented in intellisense. Some of the more common options to use include:
| Configuration string | `ConfigurationOptions` | Default | Meaning |
| abortConnect={bool} | `AbortOnConnectFail` | `true` (`false` on Azure) | If true, `Connect` will not create a connection while no servers are available |
| allowAdmin={bool} | `AllowAdmin` | `false` | Enables a range of commands that are considered risky |
| channelPrefix={string} | `ChannelPrefix` | `null` | Optional channel prefix for all pub/sub operations |
...
...
@@ -79,6 +79,7 @@ The `ConfigurationOptions` object has a wide range of properties, all of which a
| serviceName={string} | `ServiceName` | `null` | Not currently implemented (intended for use with sentinel) |
| ssl={bool} | `Ssl` | `false` | Specifies that SSL encryption should be used |
| sslHost={string} | `SslHost` | `null` | Enforces a particular SSL host identity on the server's certificate |
| sslProtocols={enum} | `SslProtocols` | `null` | Ssl/Tls versions supported when using an encrypted connection. Use '\|' to provide multiple values. |
| syncTimeout={int} | `SyncTimeout` | `1000` | Time (ms) to allow for synchronous operations |
| tiebreaker={string} | `TieBreaker` | `__Booksleeve_TieBreak` | Key to use for selecting a server in an ambiguous master scenario |
| version={string} | `DefaultVersion` | (`3.0` in Azure, else `2.0`) | Redis version level (useful when the server does not make this available) |
//Flags expect commas as separators, but we need to use '|' since commas are already used in the connection string to mean something else
value=value?.Replace("|",",");
if(!Enum.TryParse(value,true,outtmp))thrownewArgumentOutOfRangeException("Keyword '"+key+"' requires an SslProtocol value (multiple values separated by '|').");
returntmp;
}
internalstaticvoidUnknown(stringkey)
{
thrownewArgumentException("Keyword '"+key+"' is not supported");