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
AgeSeconds
total duration of the connection in seconds
public int AgeSeconds { get; }
Property Value
ClientType
The class of the connection
public ClientType ClientType { get; }
Property Value
Database
current database ID
public int Database { get; }
Property Value
Flags
The flags associated with this connection
public ClientFlags Flags { get; }
Property Value
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
Host
The host of the client (typically an IP address)
public string Host { get; }
Property Value
Id
an unique 64-bit client ID (introduced in Redis 2.8.12).
public long Id { get; }
Property Value
IdleSeconds
idle time of the connection in seconds
public int IdleSeconds { get; }
Property Value
LastCommand
last command played
public string LastCommand { get; }
Property Value
Name
The name allocated to this connection, if any
public string Name { get; }
Property Value
PatternSubscriptionCount
number of pattern matching subscriptions
public int PatternSubscriptionCount { get; }
Property Value
Port
The port of the client
public int Port { get; }
Property Value
Raw
The raw content from redis
public string Raw { get; }
Property Value
SubscriptionCount
number of channel subscriptions
public int SubscriptionCount { get; }
Property Value
TransactionCommandLength
number of commands in a MULTI/EXEC context
public int TransactionCommandLength { get; }
Property Value
Methods
ToString()
Format the object as a string
public override string ToString()