CLIENT LIST
Since 1.1.0Server
Syntax
CLIENT LIST [TYPE normal|master|replica|pubsub] [ID id [id ...]] [USER username] [ADDR ip:port] [LADDR ip:port] [SKIPME yes|no] [MAXAGE seconds]Returns a line per connection, with Redis's fields: id, addr, laddr, name, age, idle, flags, db, sub, psub, ssub, multi, watch, cmd, user, redir, resp, lib-name, lib-ver and others. The options keep only the connections that match.
| Option | Keeps |
|---|---|
TYPE normal | master | replica | pubsub | connections of this kind |
ID id ... | these IDs |
USER username | connections logged in as this user |
ADDR ip:port, LADDR ip:port | the client's address, or the server's |
SKIPME yes | no | whether to leave this connection out |
MAXAGE seconds | connections at most this old |