CLIENT

Since 1.1.0Server

Syntax

CLIENT
  • ACL categories: @connection, @slow
  • Arity: -2

Inspects and manages client connections. See its subcommands.

Subcommands

  • CLIENT CACHING: CLIENT CACHING yes makes the next read of an OPTIN connection be remembered; CLIENT CACHING no makes the next read of an OPTOUT one be skipped.
  • CLIENT GETNAME: Returns the connection's name, or nil.
  • CLIENT GETREDIR: Returns the connection this one sends its invalidations to; -1 if tracking is off or it does not redirect.
  • CLIENT HELP: Lists the CLIENT subcommands and what each does.
  • CLIENT ID: Returns the connection's ID, unique for the server's lifetime.
  • CLIENT INFO: Returns this connection's line of CLIENT LIST.
  • CLIENT KILL: Closes connections.
  • CLIENT LIST: Returns a line per connection, with Redis's fields: id, addr, laddr, name, age, idle, flags, db, sub, psub, ssub, multi, watch, cmd, user, redir, resp, lib-name, lib-ver and others.
  • CLIENT NO-EVICT: Marks the connection, ON, as one that is not closed to free memory, or, OFF, as one that may be.
  • CLIENT NO-TOUCH: Accepted.
  • CLIENT PAUSE: Holds clients' commands for timeout milliseconds, or until CLIENT UNPAUSE.
  • CLIENT REPLY: OFF stops the replies to this connection's commands until ON; SKIP drops the reply to the next command alone.
  • CLIENT SETINFO: Records the client library's name, LIB-NAME, or version, LIB-VER, on the connection; CLIENT LIST shows them as lib-name and lib-ver.
  • CLIENT SETNAME: Names the connection; the name shows in CLIENT LIST.
  • CLIENT TRACKING: Turns client-side caching on or off for this connection.
  • CLIENT TRACKINGINFO: Returns this connection's tracking state: its flags (off, on, bcast, optin, optout, noloop), the connection it redirects to, and its prefixes.
  • CLIENT UNBLOCK: Accepted for compatibility, and replies 0: KiviDB 1.1 does not unblock a client waiting in a blocking command this way.
  • CLIENT UNPAUSE: Ends a CLIENT PAUSE at once, releasing the clients it held.