Easy Tutorial
❮ Redis Intro Keys Type ❯

Redis Client List Command

Redis Server

The Redis Client List command is used to return information and statistics about the clients connected to the server.

Syntax

The basic syntax of the redis Client List command is as follows:

redis 127.0.0.1:6379> CLIENT LIST

Available Versions

= 2.4.0

Return Value

The command returns a multi-line string, formatted as follows:

Here are the meanings of the fields:

Client flags can include:

File descriptor events can be:

Example

redis 127.0.0.1:6379> CLIENT LIST
addr=127.0.0.1:43143 fd=6 age=183 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=client
addr=127.0.0.1:43163 fd=5 age=35 idle=15 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=ping
addr=127.0.0.1:43167 fd=7 age=24 idle=6 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=get

Redis Server

❮ Redis Intro Keys Type ❯