Visualizzare i client connessi in Redis
Redis ha determinati strumenti per visualizzare informazioni sui client connessi.
Oggi vediamo come visualizzare quelli connessi, con diversi campi; la descrizine la potete vedere qua sotto (ripresa dalla documentazione ufficiale):
id: an unique 64-bit client ID (introduced in Redis 2.8.12).
addr: address/port of the client
fd: file descriptor corresponding to the socket
age: total duration of the connection in seconds
idle: idle time of the connection in seconds
flags: client flags (see below)
db: current database ID
sub: number of channel subscriptions
psub: number of pattern matching subscriptions
multi: number of commands in a MULTI/EXEC context
qbuf: query buffer length (0 means no query pending)
qbuf-free: free space of the query buffer (0 means the buffer is full)
obl: output buffer length
oll: output list length (replies are queued in this list when the buffer is full)
omem: output buffer memory usage
events: file descriptor events (see below)
cmd: last command played