C# 클래스 BB.Caching.Redis.ConnectionGroup

A group of connections for Redis. Used to group a master-slave setup so that we can treat the master as the single write connection (/ read connection) and the slave(s) as the read connection(s).
파일 보기 프로젝트 열기: JesseBuesking/BB.Caching 1 사용 예제들

공개 메소드들

메소드 설명
AddReadConnection ( string connection, bool establishConnection = true ) : void

Adds a read connection.

AddWriteConnection ( string connection, bool establishConnection = true ) : void

Adds a write connection.

ConnectionGroup ( string name, bool analytics = false ) : System

Initializes a new instance of the ConnectionGroup class.

GetReadMultiplexer ( ) : StackExchange.Redis.ConnectionMultiplexer

Retrieves a connection from the read pool on a round-robin basis.

GetWriteMultiplexer ( ) : StackExchange.Redis.ConnectionMultiplexer

Retrieves the available write connections.

ToString ( ) : string

Returns a string that represents the current object.

비공개 메소드들

메소드 설명
UpdateReadPool ( ) : void

Updates the read pool with connections.

메소드 상세

AddReadConnection() 공개 메소드

Adds a read connection.
public AddReadConnection ( string connection, bool establishConnection = true ) : void
connection string /// The connection. ///
establishConnection bool /// Talks with the redis instance defined in the connection string to establish a connection. ///
리턴 void

AddWriteConnection() 공개 메소드

Adds a write connection.
public AddWriteConnection ( string connection, bool establishConnection = true ) : void
connection string /// The connection. ///
establishConnection bool /// Talks with the redis instance defined in the connection string to establish a connection. ///
리턴 void

ConnectionGroup() 공개 메소드

Initializes a new instance of the ConnectionGroup class.
public ConnectionGroup ( string name, bool analytics = false ) : System
name string /// The name. ///
analytics bool /// True if this connection group is used for bitwise analytics. ///
리턴 System

GetReadMultiplexer() 공개 메소드

Retrieves a connection from the read pool on a round-robin basis.
public GetReadMultiplexer ( ) : StackExchange.Redis.ConnectionMultiplexer
리턴 StackExchange.Redis.ConnectionMultiplexer

GetWriteMultiplexer() 공개 메소드

Retrieves the available write connections.
public GetWriteMultiplexer ( ) : StackExchange.Redis.ConnectionMultiplexer
리턴 StackExchange.Redis.ConnectionMultiplexer

ToString() 공개 메소드

Returns a string that represents the current object.
public ToString ( ) : string
리턴 string