C# Класс CSRedis.RedisClient

Represents a client connection to a Redis server instance
Наследование: IRedisClientSync, IRedisClientAsync
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void

Dispose all resources used by the current RedisClient

EndPipe ( ) : object[]

Execute pipeline commands

RedisClient ( EndPoint endpoint ) : System.Globalization

Create a new RedisClient

RedisClient ( EndPoint endpoint, bool ssl ) : System.Globalization

Create a new RedisClient

RedisClient ( EndPoint endpoint, bool ssl, int asyncConcurrency, int asyncBufferSize ) : System.Globalization

Create a new RedisClient with specific async concurrency settings

RedisClient ( EndPoint endpoint, int asyncConcurrency, int asyncBufferSize ) : System.Globalization

Create a new RedisClient with specific async concurrency settings

RedisClient ( string host ) : System.Globalization

Create a new RedisClient using default port and encoding

RedisClient ( string host, int port ) : System.Globalization

Create a new RedisClient

RedisClient ( string host, int port, bool ssl ) : System.Globalization

Create a new RedisClient

RedisClient ( string host, int port, bool ssl, int asyncConcurrency, int asyncBufferSize ) : System.Globalization

Create a new RedisClient with specific async concurrency settings

RedisClient ( string host, int port, int asyncConcurrency, int asyncBufferSize ) : System.Globalization

Create a new RedisClient with specific async concurrency settings

StartPipe ( ) : void

Begin buffered pipeline mode (calls return immediately; use EndPipe() to execute batch)

StartPipeTransaction ( ) : void

Begin buffered pipeline mode within the context of a transaction (calls return immediately; use EndPipe() to excute batch)

StreamTo ( Stream destination, Func func ) : void

Stream a BULK reply from the server using default buffer size

StreamTo ( Stream destination, int bufferSize, Func func ) : void

Stream a BULK reply from the server

Приватные методы

Метод Описание
GetHost ( ) : string
GetPort ( ) : int
OnConnectionConnected ( object sender, EventArgs args ) : void
OnMonitorReceived ( object sender, CSRedis.RedisMonitorEventArgs obj ) : void
OnSubscriptionChanged ( object sender, CSRedis.RedisSubscriptionChangedEventArgs args ) : void
OnSubscriptionReceived ( object sender, CSRedis.RedisSubscriptionReceivedEventArgs args ) : void
OnTransactionQueued ( object sender, CSRedis.RedisTransactionQueuedEventArgs args ) : void
RedisClient ( IRedisSocket socket, EndPoint endpoint ) : System.Globalization
RedisClient ( IRedisSocket socket, EndPoint endpoint, int asyncConcurrency, int asyncBufferSize ) : System.Globalization

Описание методов

Dispose() публичный Метод

Dispose all resources used by the current RedisClient
public Dispose ( ) : void
Результат void

EndPipe() публичный Метод

Execute pipeline commands
public EndPipe ( ) : object[]
Результат object[]

RedisClient() публичный Метод

Create a new RedisClient
public RedisClient ( EndPoint endpoint ) : System.Globalization
endpoint EndPoint Redis server
Результат System.Globalization

RedisClient() публичный Метод

Create a new RedisClient
public RedisClient ( EndPoint endpoint, bool ssl ) : System.Globalization
endpoint EndPoint Redis server
ssl bool Set to true if remote Redis server expects SSL
Результат System.Globalization

RedisClient() публичный Метод

Create a new RedisClient with specific async concurrency settings
public RedisClient ( EndPoint endpoint, bool ssl, int asyncConcurrency, int asyncBufferSize ) : System.Globalization
endpoint EndPoint Redis server
ssl bool Set to true if remote Redis server expects SSL
asyncConcurrency int Max concurrent threads (default 1000)
asyncBufferSize int Async thread buffer size (default 10240 bytes)
Результат System.Globalization

RedisClient() публичный Метод

Create a new RedisClient with specific async concurrency settings
public RedisClient ( EndPoint endpoint, int asyncConcurrency, int asyncBufferSize ) : System.Globalization
endpoint EndPoint Redis server
asyncConcurrency int Max concurrent threads (default 1000)
asyncBufferSize int Async thread buffer size (default 10240 bytes)
Результат System.Globalization

RedisClient() публичный Метод

Create a new RedisClient using default port and encoding
public RedisClient ( string host ) : System.Globalization
host string Redis server hostname
Результат System.Globalization

RedisClient() публичный Метод

Create a new RedisClient
public RedisClient ( string host, int port ) : System.Globalization
host string Redis server hostname
port int Redis server port
Результат System.Globalization

RedisClient() публичный Метод

Create a new RedisClient
public RedisClient ( string host, int port, bool ssl ) : System.Globalization
host string Redis server hostname
port int Redis server port
ssl bool Set to true if remote Redis server expects SSL
Результат System.Globalization

RedisClient() публичный Метод

Create a new RedisClient with specific async concurrency settings
public RedisClient ( string host, int port, bool ssl, int asyncConcurrency, int asyncBufferSize ) : System.Globalization
host string Redis server hostname
port int Redis server port
ssl bool Set to true if remote Redis server expects SSL
asyncConcurrency int Max concurrent threads (default 1000)
asyncBufferSize int Async thread buffer size (default 10240 bytes)
Результат System.Globalization

RedisClient() публичный Метод

Create a new RedisClient with specific async concurrency settings
public RedisClient ( string host, int port, int asyncConcurrency, int asyncBufferSize ) : System.Globalization
host string Redis server hostname
port int Redis server port
asyncConcurrency int Max concurrent threads (default 1000)
asyncBufferSize int Async thread buffer size (default 10240 bytes)
Результат System.Globalization

StartPipe() публичный Метод

Begin buffered pipeline mode (calls return immediately; use EndPipe() to execute batch)
public StartPipe ( ) : void
Результат void

StartPipeTransaction() публичный Метод

Begin buffered pipeline mode within the context of a transaction (calls return immediately; use EndPipe() to excute batch)
public StartPipeTransaction ( ) : void
Результат void

StreamTo() публичный Метод

Stream a BULK reply from the server using default buffer size
public StreamTo ( Stream destination, Func func ) : void
destination Stream Destination stream
func Func Client command to execute (BULK reply only)
Результат void

StreamTo() публичный Метод

Stream a BULK reply from the server
public StreamTo ( Stream destination, int bufferSize, Func func ) : void
destination Stream Destination stream
bufferSize int Size of buffer used to write server response
func Func Client command to execute (BULK reply only)
Результат void