Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Redis

You're reading from  Learning Redis

Product type Book
Published in Jun 2015
Publisher
ISBN-13 9781783980123
Pages 318 pages
Edition 1st Edition
Languages
Author (1):
Vinoo Das Vinoo Das
Profile icon Vinoo Das

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}