RedisSentinelResolver
Assembly: ServiceStack.Redis.dll
View Source
Declaration
public class RedisSentinelResolver : IRedisResolverExtended, IRedisResolver
Properties
ClientFactory
View Source
Declaration
public Func<RedisEndpoint, RedisClient> ClientFactory { get; set; }
ReadWriteHostsCount
View Source
Declaration
public int ReadWriteHostsCount { get; }
ReadOnlyHostsCount
View Source
Declaration
public int ReadOnlyHostsCount { get; }
Masters
View Source
Declaration
public RedisEndpoint[] Masters { get; }
Slaves
View Source
Declaration
public RedisEndpoint[] Slaves { get; }
PrimaryEndpoint
View Source
Declaration
public IRedisEndpoint PrimaryEndpoint { get; }
Methods
CreateClient(String)
View Source
Declaration
public IRedisClient CreateClient(string host)
Returns
ServiceStack.Redis.IRedisClient
Parameters
Type | Name |
---|---|
System.String | host |
ResetMasters(IEnumerable<String>)
View Source
Declaration
public virtual void ResetMasters(IEnumerable<string> hosts)
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.String> | hosts |
ResetMasters(List<RedisEndpoint>)
View Source
Declaration
public virtual void ResetMasters(List<RedisEndpoint> newMasters)
Parameters
Type | Name |
---|---|
System.Collections.Generic.List<ServiceStack.Redis.RedisEndpoint> | newMasters |
ResetSlaves(IEnumerable<String>)
View Source
Declaration
public virtual void ResetSlaves(IEnumerable<string> hosts)
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.String> | hosts |
ResetSlaves(List<RedisEndpoint>)
View Source
Declaration
public virtual void ResetSlaves(List<RedisEndpoint> newReplicas)
Parameters
Type | Name |
---|---|
System.Collections.Generic.List<ServiceStack.Redis.RedisEndpoint> | newReplicas |
GetReadWriteHost(Int32)
View Source
Declaration
public RedisEndpoint GetReadWriteHost(int desiredIndex)
Returns
ServiceStack.Redis.RedisEndpoint
Parameters
Type | Name |
---|---|
System.Int32 | desiredIndex |
GetReadOnlyHost(Int32)
View Source
Declaration
public RedisEndpoint GetReadOnlyHost(int desiredIndex)
Returns
ServiceStack.Redis.RedisEndpoint
Parameters
Type | Name |
---|---|
System.Int32 | desiredIndex |
CreateMasterClient(Int32)
View Source
Declaration
public RedisClient CreateMasterClient(int desiredIndex)
Returns
ServiceStack.Redis.RedisClient
Parameters
Type | Name |
---|---|
System.Int32 | desiredIndex |
CreateSlaveClient(Int32)
View Source
Declaration
public RedisClient CreateSlaveClient(int desiredIndex)
Returns
ServiceStack.Redis.RedisClient
Parameters
Type | Name |
---|---|
System.Int32 | desiredIndex |
CreateRedisClient(RedisEndpoint, Boolean)
View Source
Declaration
public virtual RedisClient CreateRedisClient(RedisEndpoint config, bool master)
Returns
ServiceStack.Redis.RedisClient
Parameters
Type | Name |
---|---|
ServiceStack.Redis.RedisEndpoint | config |
System.Boolean | master |
Implements
- ServiceStack.Redis.IRedisResolverExtended
IRedisResolver