Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Redis Client List Command

Redis Client List Command

Redis Server

The Redis Client List command is used to return information and statistics about all 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 Version

= 2.4.0

Return Value

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

The following are the meanings of the fields:

The client flags can consist of the following parts:

The 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