Redis Connection command

PING

PING [message]

#Example

redis> PING
"PONG"
redis> PING "hello world"
"hello world"

Ping the server

ECHO

ECHO message

#Example

redis> ECHO "Hello World!"
"Hello World!"

Echo the given string

CLIENT INFO

CLIENT INFO

#Example

redis> CLIENT INFO
"id=55542 addr=127.0.0.1:58710 laddr=127.0.0.1:6379 fd=8 name= age=114920 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=26 qbuf-free=40928 argv-mem=10 obl=0 oll=0 omem=0 tot-mem=61466 events=r cmd=client user=default redir=-1\n"

Returns information about the current client connection.

CLIENT ID

CLIENT ID

#Example

redis> CLIENT ID
ERR Unknown or disabled command 'CLIENT'

Returns the client ID for the current connection

Comments