Connection management

In this section we will be focusing on the way we can manage the connection to Redis. The functions provided under connection management in Redis help us to do the following:

  • AUTH: This command with the password allows the request to be processed if the password matches the configured password. Redis server can be configured with requirepass in the config file along with the password.
  • ECHO: This command echoes back the text sent to a Redis instance.
  • PING: This command replies with PONG when sent to a Redis instance.
  • QUIT: This command kills the connection held by the Redis instance for a client.
  • SELECT: This command helps in selecting a database in Redis for executing the command. Data in Redis can have separation of concern and ...

Get Learning Redis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.