Redis – Connections

  • Post author:
  • Post category:Redis
  • Post comments:0 Comments

Redis connection commands are basically used to manage client connections with Redis server.

Example

Following example explains how a client authenticates itself to Redis server and checks whether the server is running or not.

redis 127.0.0.1:6379> AUTH "password" 
OK 
redis 127.0.0.1:6379> PING 
PONG 

Redis Connection Commands

Following table lists some basic commands related to Redis connections.

Sr.NoCommand & Description
1AUTH passwordhttps://adglob.in/blog/redis-connection-auth-command/
Authenticates to the server with the given password
2ECHO messagehttps://adglob.in/blog/redis-connection-echo-command/
Prints the given string
3PINGhttps://adglob.in/blog/redis-connection-ping-command/
Checks whether the server is running or not
4QUIThttps://adglob.in/blog/redis-connection-quit-command/
Closes the current connection
5SELECT indexhttps://adglob.in/blog/redis-connection-select-command/
Changes the selected database for the current connection

Leave a Reply