HELLO

Syntax

  1. HELLO

Time complexity: O(1)

Provide a contextual client report.

HELLO always replies with a list of current server and connection properties, such as: versions, modules loaded, client ID, replication role and so forth. The reply looks like this:

  1. > HELLO
  2. 1) "server"
  3. 2) "redis"
  4. 3) "version"
  5. 4) "df-dev"
  6. 5) "proto"
  7. 6) (integer) 2
  8. 7) "id"
  9. 8) (integer) 5
  10. 9) "mode"
  11. 1) "standalone"
  12. 2) "role"
  13. 3) "master"

Return

Array reply: a list of server properties. The command returns an error if the protover requested does not exist.