Table of Contents

Class ClientInfo

Namespace
StackExchange.Redis
Assembly
StackExchange.Redis.StrongName.dll

Represents the state of an individual client connection to redis

public sealed class ClientInfo
Inheritance
ClientInfo
Inherited Members

Constructors

ClientInfo()

public ClientInfo()

Properties

Address

Address (host and port) of the client

public EndPoint Address { get; }

Property Value

EndPoint

AgeSeconds

total duration of the connection in seconds

public int AgeSeconds { get; }

Property Value

int

ClientType

The class of the connection

public ClientType ClientType { get; }

Property Value

ClientType

Database

current database ID

public int Database { get; }

Property Value

int

Flags

The flags associated with this connection

public ClientFlags Flags { get; }

Property Value

ClientFlags

FlagsRaw

The client flags can be a combination of: O: the client is a slave in MONITOR mode S: the client is a normal slave server M: the client is a master x: the client is in a MULTI/EXEC context b: the client is waiting in a blocking operation i: the client is waiting for a VM I/O (deprecated) d: a watched keys has been modified - EXEC will fail c: connection to be closed after writing entire reply u: the client is unblocked A: connection to be closed ASAP N: no specific flag set

public string FlagsRaw { get; }

Property Value

string

Host

The host of the client (typically an IP address)

public string Host { get; }

Property Value

string

Id

an unique 64-bit client ID (introduced in Redis 2.8.12).

public long Id { get; }

Property Value

long

IdleSeconds

idle time of the connection in seconds

public int IdleSeconds { get; }

Property Value

int

LastCommand

last command played

public string LastCommand { get; }

Property Value

string

Name

The name allocated to this connection, if any

public string Name { get; }

Property Value

string

PatternSubscriptionCount

number of pattern matching subscriptions

public int PatternSubscriptionCount { get; }

Property Value

int

Port

The port of the client

public int Port { get; }

Property Value

int

Raw

The raw content from redis

public string Raw { get; }

Property Value

string

SubscriptionCount

number of channel subscriptions

public int SubscriptionCount { get; }

Property Value

int

TransactionCommandLength

number of commands in a MULTI/EXEC context

public int TransactionCommandLength { get; }

Property Value

int

Methods

ToString()

Format the object as a string

public override string ToString()

Returns

string