@@ -83,15 +83,22 @@ public class RedisConfig
8383 public static int ? AssumeServerVersion ;
8484
8585 /// <summary>
86- /// How long to hold deactivated clients for before disposing their connection (default 10 seconds)
86+ /// How long to hold deactivated clients for before disposing their connection (default 0 seconds)
8787 /// Dispose of deactivated Clients immediately with TimeSpan.Zero
8888 /// </summary>
89- public static TimeSpan DeactivatedClientsExpiry = TimeSpan . FromSeconds ( 10 ) ;
89+ public static TimeSpan DeactivatedClientsExpiry = TimeSpan . Zero ;
9090
9191 /// <summary>
92- /// Whether Debug Logging should log detailed Redis operations (default false )
92+ /// Whether Debug Logging should log detailed Redis operations (default true )
9393 /// </summary>
94- public static bool DisableVerboseLogging = false ;
94+ public static bool EnableVerboseLogging = false ;
95+
96+ [ Obsolete ( "Use EnableVerboseLogging" ) ]
97+ public static bool DisableVerboseLogging
98+ {
99+ get => ! EnableVerboseLogging ;
100+ set => EnableVerboseLogging = ! value ;
101+ }
95102
96103 //Example at: http://msdn.microsoft.com/en-us/library/office/dd633677(v=exchg.80).aspx
97104 public static LocalCertificateSelectionCallback CertificateSelectionCallback { get ; set ; }
@@ -121,8 +128,8 @@ public static void Reset()
121128 VerifyMasterConnections = true ;
122129 HostLookupTimeoutMs = 200 ;
123130 AssumeServerVersion = null ;
124- DeactivatedClientsExpiry = TimeSpan . FromSeconds ( 10 ) ;
125- DisableVerboseLogging = false ;
131+ DeactivatedClientsExpiry = TimeSpan . Zero ;
132+ EnableVerboseLogging = false ;
126133 CertificateSelectionCallback = null ;
127134 CertificateValidationCallback = null ;
128135 AssertAccessOnlyOnSameThread = false ;
0 commit comments