Skip to main content

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
TypeName
IRedisResolverresolver
System.Int32desiredIndex

CreateSlaveClient(IRedisResolver, Int32)

View Source
Declaration
public static RedisClient CreateSlaveClient(this IRedisResolver resolver, int desiredIndex)
Returns

ServiceStack.Redis.RedisClient

Parameters
TypeName
IRedisResolverresolver
System.Int32desiredIndex

CreateRedisClient(IRedisResolver, RedisEndpoint, Boolean)

View Source
Declaration
public static RedisClient CreateRedisClient(this IRedisResolver resolver, RedisEndpoint config, bool master)
Returns

ServiceStack.Redis.RedisClient

Parameters
TypeName
IRedisResolverresolver
ServiceStack.Redis.RedisEndpointconfig
System.Booleanmaster

GetReadWriteHost(IRedisResolver, Int32)

View Source
Declaration
public static RedisEndpoint GetReadWriteHost(this IRedisResolver resolver, int desiredIndex)
Returns

ServiceStack.Redis.RedisEndpoint

Parameters
TypeName
IRedisResolverresolver
System.Int32desiredIndex

GetReadOnlyHost(IRedisResolver, Int32)

View Source
Declaration
public static RedisEndpoint GetReadOnlyHost(this IRedisResolver resolver, int desiredIndex)
Returns

ServiceStack.Redis.RedisEndpoint

Parameters
TypeName
IRedisResolverresolver
System.Int32desiredIndex