Property | Type | Description | |
---|---|---|---|
DefaultAddress | string | ||
DefaultMasterName | string |
Property | Type | Description | |
---|---|---|---|
Log | ILog |
Property | Type | Description | |
---|---|---|---|
ConfigureHosts | string[] | ||
CreateRedisManager | IRedisClientsManager | ||
GetNextSentinel | |||
GetValidSentinelWorker | |||
OnSentinelError | void | ||
ShouldRetry | bool |
Method | Description | |
---|---|---|
Dispose ( ) : void | ||
ForceMasterFailover ( ) : void | ||
GetActiveSentinelHosts ( IEnumerable |
||
GetMaster ( ) : |
||
GetRedisManager ( ) : IRedisClientsManager | ||
GetSentinelInfo ( ) : SentinelInfo | ||
GetSlaves ( ) : List |
||
RedisSentinel ( IEnumerable |
||
RedisSentinel ( string sentinelHost = null, string masterName = null ) : System | ||
RefreshActiveSentinels ( ) : void | ||
ResetClients ( ) : SentinelInfo | ||
Start ( ) : IRedisClientsManager |
Initialize Sentinel Subscription and Configure Redis ClientsManager
|
Method | Description | |
---|---|---|
ConfigureHosts ( IEnumerable |
||
CreateRedisManager ( SentinelInfo sentinelInfo ) : IRedisClientsManager | ||
GetNextSentinel ( ) : |
||
GetValidSentinelWorker ( ) : |
||
OnSentinelError ( |
||
ShouldRetry ( ) : bool |
Check if GetValidSentinel should try the next sentinel server This will be true if the failures is less than either RedisSentinel.MaxFailures or the # of sentinels, whatever is greater |
public GetActiveSentinelHosts ( IEnumerable |
||
sentinelHosts | IEnumerable |
|
return | List |
public GetRedisManager ( ) : IRedisClientsManager | ||
return | IRedisClientsManager |
public RedisSentinel ( IEnumerable |
||
sentinelHosts | IEnumerable |
|
masterName | string | |
return | System |
public RedisSentinel ( string sentinelHost = null, string masterName = null ) : System | ||
sentinelHost | string | |
masterName | string | |
return | System |