CLIENT LIST [TYPE normal|master|replica|pubsub]

    Time complexity: O(N) where N is the number of client connections

    The command returns information and statistics about the client connections server in a mostly human readable format.

    Bulk string reply: 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
    • : address/port of the client
    • 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-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

    The file descriptor events can be:

    1. 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).