Redis Client Connect Test
CLIENT LIST
The CLIENT LIST command returns information and statistics about the client connections server in a mostly human readable format.
Return value
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).addr
: address/port of the clientfd
: file descriptor corresponding to the socketage
: 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
: query buffer length (0 means no query pending)qbuf-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 client flags can be a combination of:
O: the client is a slave in MONITOR mode
S: the client is a normal slave server
M: the client is a master
x: the client is in a MULTI/EXEC context
b: the client is waiting in a blocking operation
i: the client is waiting for a VM I/O (deprecated)
d: a watched keys has been modified - EXEC will fail
c: connection to be closed after writing entire reply
u: the client is unblocked
U: the client is connected via a Unix domain socket
r: the client is in readonly mode against a cluster node
A: connection to be closed ASAP
N: no specific flag set
The file descriptor events can be:
r: the client socket is readable (event loop)
w: the client socket is writable (event loop)
'Programming > Redis' 카테고리의 다른 글
Hiredis SMEMBERS 활용 (0) | 2017.01.24 |
---|---|
Hiredis Subscribe/Publish with CWinThread (0) | 2016.10.05 |
How to use Pub/sub with hiredis in C++? (0) | 2016.09.29 |
hiredis fatal error C1853: (0) | 2016.09.29 |
hiredis MFC import Visual Studio 2013 (0) | 2016.09.28 |