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: i64
a unique 64-bit client ID
addr: String
address/port of the client
laddr: String
address/port of local address client connected to (bind address)
fd: u32
file descriptor corresponding to the socket
name: String
the name set by the client with client_setname
age: u32
total duration of the connection in seconds
idle: u32
idle time of the connection in seconds
flags: String
client flags (see client-list
)
db: usize
current database ID
sub: usize
number of channel subscriptions
psub: usize
number of pattern matching subscriptions
ssub: usize
number of shard channel subscriptions. Added in Redis 7.0.3
multi: usize
number of commands in a MULTI/EXEC context
qbuf: usize
query buffer length (0 means no query pending)
qbuf_free: usize
free space of the query buffer (0 means the buffer is full)
argv_mem: usize
incomplete arguments for the next command (already extracted from query buffer)
multi_mem: usize
memory is used up by buffered multi commands. Added in Redis 7.0
obl: usize
output buffer length
oll: usize
output list length (replies are queued in this list when the buffer is full)
omem: usize
output buffer memory usage
tot_mem: usize
total memory consumed by this client in its various buffers
events: String
file descriptor events (r or w)
cmd: String
last command played
user: String
the authenticated username of the client
redir: i64
client id of current client tracking redirection
resp: i32
client RESP protocol version
additional_arguments: HashMap<String, String>
additional arguments that may be added in future versions of Redis