@@ -11,6 +11,7 @@ public RedisEndpoint()
1111 Port = RedisNativeClient . DefaultPort ;
1212 Db = RedisNativeClient . DefaultDb ;
1313
14+ ConnectTimeout = 0 ;
1415 SendTimeout = - 1 ;
1516 ReceiveTimeout = - 1 ;
1617 IdleTimeOutSecs = RedisNativeClient . DefaultIdleTimeOutSecs ;
@@ -27,26 +28,30 @@ public RedisEndpoint(string host, int port, string password = null, long db = Re
2728
2829 public string Host { get ; set ; }
2930 public int Port { get ; set ; }
31+ public bool Ssl { get ; set ; }
32+ public int ConnectTimeout { get ; set ; }
3033 public int SendTimeout { get ; set ; }
3134 public int ReceiveTimeout { get ; set ; }
3235 public int IdleTimeOutSecs { get ; set ; }
3336 public long Db { get ; set ; }
3437 public string Client { get ; set ; }
3538 public string Password { get ; set ; }
36- public bool Ssl { get ; set ; }
3739 public bool RequiresAuth { get { return ! string . IsNullOrEmpty ( Password ) ; } }
40+ public string NamespacePrefix { get ; set ; }
3841
3942 protected bool Equals ( RedisEndpoint other )
4043 {
4144 return string . Equals ( Host , other . Host )
4245 && Port == other . Port
43- && SendTimeout == other . SendTimeout
46+ && Ssl . Equals ( other . Ssl )
47+ && ConnectTimeout == other . ConnectTimeout
48+ && SendTimeout == other . SendTimeout
4449 && ReceiveTimeout == other . ReceiveTimeout
4550 && IdleTimeOutSecs == other . IdleTimeOutSecs
4651 && Db == other . Db
4752 && string . Equals ( Client , other . Client )
4853 && string . Equals ( Password , other . Password )
49- && Ssl . Equals ( other . Ssl ) ;
54+ && string . Equals ( NamespacePrefix , other . NamespacePrefix ) ;
5055 }
5156
5257 public override bool Equals ( object obj )
@@ -63,13 +68,15 @@ public override int GetHashCode()
6368 {
6469 var hashCode = ( Host != null ? Host . GetHashCode ( ) : 0 ) ;
6570 hashCode = ( hashCode * 397 ) ^ Port ;
71+ hashCode = ( hashCode * 397 ) ^ Ssl . GetHashCode ( ) ;
72+ hashCode = ( hashCode * 397 ) ^ ConnectTimeout ;
6673 hashCode = ( hashCode * 397 ) ^ SendTimeout ;
6774 hashCode = ( hashCode * 397 ) ^ ReceiveTimeout ;
6875 hashCode = ( hashCode * 397 ) ^ IdleTimeOutSecs ;
6976 hashCode = ( hashCode * 397 ) ^ Db . GetHashCode ( ) ;
7077 hashCode = ( hashCode * 397 ) ^ ( Client != null ? Client . GetHashCode ( ) : 0 ) ;
7178 hashCode = ( hashCode * 397 ) ^ ( Password != null ? Password . GetHashCode ( ) : 0 ) ;
72- hashCode = ( hashCode * 397 ) ^ Ssl . GetHashCode ( ) ;
79+ hashCode = ( hashCode * 397 ) ^ ( NamespacePrefix != null ? NamespacePrefix . GetHashCode ( ) : 0 ) ;
7380 return hashCode ;
7481 }
7582 }
0 commit comments