Book Image

Learning Redis

By : Vinoo Das
Book Image

Learning Redis

By: Vinoo Das

Overview of this book

Table of Contents (16 chapters)
Learning Redis
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 this is achieved by creating a silo and storing the data in that. The data in each silo don't interfere and are isolated.

Redis authentication

Adding a simple password to your Redis server via Redis client and testing it via Java client is explained...