C# 클래스 ServiceStack.Redis.RedisManagerPool

Provides thread-safe pooling of redis client connections.
상속: IRedisClientsManager, IRedisFailover, IHandleClientDispose, IHasRedisResolver
파일 보기 프로젝트 열기: ServiceStack/ServiceStack.Redis 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
RecheckPoolAfterMs int

보호된 프로퍼티들

프로퍼티 타입 설명
RedisClientCounter int
poolIndex int

공개 메소드들

메소드 설명
Dispose ( ) : void
DisposeClient ( RedisNativeClient client ) : void
DisposeWriteClient ( RedisNativeClient client ) : void

Disposes the write client.

FailoverTo ( ) : void
FailoverTo ( IEnumerable readWriteHosts, IEnumerable readOnlyHosts ) : void
GetCacheClient ( ) : ICacheClient
GetClient ( ) : IRedisClient

Returns a Read/Write client (The default) using the hosts defined in ReadWriteHosts

GetClientPoolActiveStates ( ) : int[]
GetReadOnlyCacheClient ( ) : ICacheClient
GetReadOnlyClient ( ) : IRedisClient
GetStats ( ) : string>.Dictionary
RedisManagerPool ( ) : System
RedisManagerPool ( IEnumerable hosts ) : System
RedisManagerPool ( IEnumerable hosts, RedisPoolConfig config ) : System
RedisManagerPool ( string host ) : System
RedisManagerPool ( string host, RedisPoolConfig config ) : System

보호된 메소드들

메소드 설명
Dispose ( RedisClient redisClient ) : void
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
AssertValidPool ( ) : void
GetInActiveClient ( RedisClient &inactiveClient ) : int

Called within a lock

InitNewClient ( RedisClient client ) : RedisClient

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( RedisClient redisClient ) : void
redisClient RedisClient
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

DisposeClient() 공개 메소드

public DisposeClient ( RedisNativeClient client ) : void
client RedisNativeClient
리턴 void

DisposeWriteClient() 공개 메소드

Disposes the write client.
public DisposeWriteClient ( RedisNativeClient client ) : void
client RedisNativeClient The client.
리턴 void

FailoverTo() 공개 메소드

public FailoverTo ( ) : void
리턴 void

FailoverTo() 공개 메소드

public FailoverTo ( IEnumerable readWriteHosts, IEnumerable readOnlyHosts ) : void
readWriteHosts IEnumerable
readOnlyHosts IEnumerable
리턴 void

GetCacheClient() 공개 메소드

public GetCacheClient ( ) : ICacheClient
리턴 ICacheClient

GetClient() 공개 메소드

Returns a Read/Write client (The default) using the hosts defined in ReadWriteHosts
public GetClient ( ) : IRedisClient
리턴 IRedisClient

GetClientPoolActiveStates() 공개 메소드

public GetClientPoolActiveStates ( ) : int[]
리턴 int[]

GetReadOnlyCacheClient() 공개 메소드

public GetReadOnlyCacheClient ( ) : ICacheClient
리턴 ICacheClient

GetReadOnlyClient() 공개 메소드

public GetReadOnlyClient ( ) : IRedisClient
리턴 IRedisClient

GetStats() 공개 메소드

public GetStats ( ) : string>.Dictionary
리턴 string>.Dictionary

RedisManagerPool() 공개 메소드

public RedisManagerPool ( ) : System
리턴 System

RedisManagerPool() 공개 메소드

public RedisManagerPool ( IEnumerable hosts ) : System
hosts IEnumerable
리턴 System

RedisManagerPool() 공개 메소드

public RedisManagerPool ( IEnumerable hosts, RedisPoolConfig config ) : System
hosts IEnumerable
config RedisPoolConfig
리턴 System

RedisManagerPool() 공개 메소드

public RedisManagerPool ( string host ) : System
host string
리턴 System

RedisManagerPool() 공개 메소드

public RedisManagerPool ( string host, RedisPoolConfig config ) : System
host string
config RedisPoolConfig
리턴 System

프로퍼티 상세

RecheckPoolAfterMs 공개적으로 프로퍼티

public int RecheckPoolAfterMs
리턴 int

RedisClientCounter 보호되어 있는 프로퍼티

protected int RedisClientCounter
리턴 int

poolIndex 보호되어 있는 프로퍼티

protected int poolIndex
리턴 int