RedisResolverExtensions
Assembly: ServiceStack.Redis.dll
View Source
Declaration
public static class RedisResolverExtensions
Methods
CreateMasterClient(IRedisResolver, Int32)
View Source
Declaration
public static RedisClient CreateMasterClient(this IRedisResolver resolver, int desiredIndex)
Returns
ServiceStack.Redis.RedisClient
Parameters
Type | Name |
---|---|
IRedisResolver | resolver |
System.Int32 | desiredIndex |
CreateSlaveClient(IRedisResolver, Int32)
View Source
Declaration
public static RedisClient CreateSlaveClient(this IRedisResolver resolver, int desiredIndex)
Returns
ServiceStack.Redis.RedisClient
Parameters
Type | Name |
---|---|
IRedisResolver | resolver |
System.Int32 | desiredIndex |
CreateRedisClient(IRedisResolver, RedisEndpoint, Boolean)
View Source
Declaration
public static RedisClient CreateRedisClient(this IRedisResolver resolver, RedisEndpoint config, bool master)
Returns
ServiceStack.Redis.RedisClient
Parameters
Type | Name |
---|---|
IRedisResolver | resolver |
ServiceStack.Redis.RedisEndpoint | config |
System.Boolean | master |
GetReadWriteHost(IRedisResolver, Int32)
View Source
Declaration
public static RedisEndpoint GetReadWriteHost(this IRedisResolver resolver, int desiredIndex)
Returns
ServiceStack.Redis.RedisEndpoint
Parameters
Type | Name |
---|---|
IRedisResolver | resolver |
System.Int32 | desiredIndex |
GetReadOnlyHost(IRedisResolver, Int32)
View Source
Declaration
public static RedisEndpoint GetReadOnlyHost(this IRedisResolver resolver, int desiredIndex)
Returns
ServiceStack.Redis.RedisEndpoint
Parameters
Type | Name |
---|---|
IRedisResolver | resolver |
System.Int32 | desiredIndex |