CLIENT LIST [TYPE normal|master|replica|pubsub]
Time complexity: O(N) where N is the number of client connections
The CLIENT LIST command returns information and statistics about the client connections server in a mostly human readable format.
: a unique string, formatted as follows:
- One client connection per line (separated by LF)
- Each line is composed of a succession of
property=value
fields separated by a space character.
Here is the meaning of the fields:
id
: an unique 64-bit client ID (introduced in Redis 2.8.12).name
: the name set by the client with CLIENT SETNAME- : address/port of the client
age
: total duration of the connection in secondsidle
: idle time of the connection in secondsflags
: client flags (see below)db
: current database IDsub
: number of channel subscriptionspsub
: number of pattern matching subscriptionsmulti
: number of commands in a MULTI/EXEC contextqbuf-free
: free space of the query buffer (0 means the buffer is full)obl
: output buffer lengtholl
: output list length (replies are queued in this list when the buffer is full)omem
: output buffer memory usageevents
: file descriptor events (see below)cmd
: last command played
The file descriptor events can be:
r: the client socket is readable (event loop)
*Notes
New fields are regularly added for debugging purpose. Some could be removed in the future. A version safe Redis client using this command should parse the output accordingly (i.e. handling gracefully missing fields, skipping unknown fields).