Redis connection commands are basically used to manage client connections with Redis server.
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
Following table lists some basic commands related to Redis connections.
|Sr.No||Command & Description|
Authenticates to the server with the given password
Prints the given string
Checks whether the server is running or not
Closes the current connection
Changes the selected database for the current connection