Skip to main content

RedisResolver

Assembly: ServiceStack.Redis.dll
View Source
Declaration
public class RedisResolver : 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
TypeName
System.Stringhost

ResetMasters(IEnumerable<String>)

View Source
Declaration
public virtual void ResetMasters(IEnumerable<string> hosts)
Parameters
TypeName
System.Collections.Generic.IEnumerable<System.String>hosts

ResetMasters(List<RedisEndpoint>)

View Source
Declaration
public virtual void ResetMasters(List<RedisEndpoint> newMasters)
Parameters
TypeName
System.Collections.Generic.List<ServiceStack.Redis.RedisEndpoint>newMasters

ResetSlaves(IEnumerable<String>)

View Source
Declaration
public virtual void ResetSlaves(IEnumerable<string> hosts)
Parameters
TypeName
System.Collections.Generic.IEnumerable<System.String>hosts

ResetSlaves(List<RedisEndpoint>)

View Source
Declaration
public virtual void ResetSlaves(List<RedisEndpoint> newReplicas)
Parameters
TypeName
System.Collections.Generic.List<ServiceStack.Redis.RedisEndpoint>newReplicas

CreateRedisClient(RedisEndpoint, Boolean)

View Source
Declaration
public virtual RedisClient CreateRedisClient(RedisEndpoint config, bool master)
Returns

ServiceStack.Redis.RedisClient

Parameters
TypeName
ServiceStack.Redis.RedisEndpointconfig
System.Booleanmaster

GetValidMaster(RedisClient, RedisEndpoint)

View Source
Declaration
protected RedisClient GetValidMaster(RedisClient client, RedisEndpoint config)
Returns

ServiceStack.Redis.RedisClient

Parameters
TypeName
ServiceStack.Redis.RedisClientclient
ServiceStack.Redis.RedisEndpointconfig

GetReadWriteHost(Int32)

View Source
Declaration
public RedisEndpoint GetReadWriteHost(int desiredIndex)
Returns

ServiceStack.Redis.RedisEndpoint

Parameters
TypeName
System.Int32desiredIndex

GetReadOnlyHost(Int32)

View Source
Declaration
public RedisEndpoint GetReadOnlyHost(int desiredIndex)
Returns

ServiceStack.Redis.RedisEndpoint

Parameters
TypeName
System.Int32desiredIndex

CreateMasterClient(Int32)

View Source
Declaration
public RedisClient CreateMasterClient(int desiredIndex)
Returns

ServiceStack.Redis.RedisClient

Parameters
TypeName
System.Int32desiredIndex

CreateSlaveClient(Int32)

View Source
Declaration
public RedisClient CreateSlaveClient(int desiredIndex)
Returns

ServiceStack.Redis.RedisClient

Parameters
TypeName
System.Int32desiredIndex

Implements