Struct redis_driver::ClientInfo
source · [−]pub struct ClientInfo {Show 27 fields
pub id: i64,
pub addr: String,
pub laddr: String,
pub fd: u32,
pub name: String,
pub age: u32,
pub idle: u32,
pub flags: String,
pub db: usize,
pub sub: usize,
pub psub: usize,
pub ssub: usize,
pub multi: usize,
pub qbuf: usize,
pub qbuf_free: usize,
pub argv_mem: usize,
pub multi_mem: usize,
pub obl: usize,
pub oll: usize,
pub omem: usize,
pub tot_mem: usize,
pub events: String,
pub cmd: String,
pub user: String,
pub redir: i64,
pub resp: i32,
pub additional_arguments: HashMap<String, String>,
}Expand description
Client info results for the client_info
& client_list commands.
Fields
id: i64a unique 64-bit client ID
addr: Stringaddress/port of the client
laddr: Stringaddress/port of local address client connected to (bind address)
fd: u32file descriptor corresponding to the socket
name: Stringthe name set by the client with client_setname
age: u32total duration of the connection in seconds
idle: u32idle time of the connection in seconds
flags: Stringclient flags (see client-list)
db: usizecurrent database ID
sub: usizenumber of channel subscriptions
psub: usizenumber of pattern matching subscriptions
ssub: usizenumber of shard channel subscriptions. Added in Redis 7.0.3
multi: usizenumber of commands in a MULTI/EXEC context
qbuf: usizequery buffer length (0 means no query pending)
qbuf_free: usizefree space of the query buffer (0 means the buffer is full)
argv_mem: usizeincomplete arguments for the next command (already extracted from query buffer)
multi_mem: usizememory is used up by buffered multi commands. Added in Redis 7.0
obl: usizeoutput buffer length
oll: usizeoutput list length (replies are queued in this list when the buffer is full)
omem: usizeoutput buffer memory usage
tot_mem: usizetotal memory consumed by this client in its various buffers
events: Stringfile descriptor events (r or w)
cmd: Stringlast command played
user: Stringthe authenticated username of the client
redir: i64client id of current client tracking redirection
resp: i32client RESP protocol version
additional_arguments: HashMap<String, String>additional arguments that may be added in future versions of Redis