This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -295,11 +295,24 @@ RedisConfig.BackOffMultiplier = 10;
295
295
296
296
## [ ServiceStack.Redis SSL Support] ( http://docs.servicestack.net/ssl-redis-azure )
297
297
298
- ServiceStack.Redis now supporting ** SSL connections** making it suitable for accessing remote Redis server instances over a
298
+ ServiceStack.Redis supports ** SSL connections** making it suitable for accessing remote Redis server instances over a
299
299
** secure SSL connection** .
300
300
301
301
![ Azure Redis Cache] ( https://github.com/ServiceStack/Assets/raw/master/img/wikis/redis/azure-redis-instance.png )
302
302
303
+ #### Specify SSL Protocol
304
+
305
+ Support for changing the Ssl Protocols used for encrypted SSL connections can be set on the connection string using the ` sslprotocols ` modifier, e.g:
306
+
307
+ ``` csharp
308
+ var connString = $" redis://{Host }?ssl=true&sslprotocols=Tls12&password={Password .UrlEncode ()}" ;
309
+ var redisManager = new RedisManagerPool (connString );
310
+ using (var client = redisManager .GetClient ())
311
+ {
312
+ // ...
313
+ }
314
+ ```
315
+
303
316
### [ Connecting to Azure Redis] ( http://docs.servicestack.net/ssl-redis-azure )
304
317
305
318
As connecting to [ Azure Redis Cache] ( http://azure.microsoft.com/en-us/services/cache/ ) via SSL was the primary use-case for this feature,
You can’t perform that action at this time.
0 commit comments