CLIENT LIST

  • gives you list of client sessions connected to Redis.
  • output looks like this:
    id=4 addr=172.30.8.155:58748 fd=6 name= age=4950 idle=3823 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
    id=7 addr=127.0.0.1:41027 fd=7 name=main_session_cos7 age=144 idle=124 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=client
    id=8 addr=127.0.0.1:41028 fd=8 name= age=13 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
    

CLIENT SETNAME

  • sets name for the current session – see “name” in client list
  • example:
    • client setname main_session_cos7

CLIENT GETNAME

  • gets name of the current session
  • returns (nil) if not set

CLIENT KILL

  • disconnect specified session
    • client program on that session is not ended just disconnected
    • to connect again you have to authenticate again
  • use it with “addr” value from client list
  • example:
    • client kill 127.0.0.1:41028
    • if successful gives you response “OK”

CLIENT PAUSE

  • pause run of all client commands for specified miliseconds