Redis connection commands are used to manipulate and manipulate purchaser connections with Redis Server.
Following example explains how a client authenticates itself to Redis server and assessments whether or not the server is walking or not.
redis 127.0.0.1:6379> AUTH "password" (error) ERR Client sent AUTH, but no password is set redis 127.0.0.1:6379> redis 127.0.0.1:6379> PING PONG redis 127.0.0.1:6379>
Note: Here you can see that “password” is no longer set so you can get right of entry to any command directly.
Redis Connection Commands
Following is a listing of some fundamental connection commands used in Redis database:
|1||AUTH password||It is used to authenticate to the server with the given password.|
|2||ECHO message||It is used to print the given string.|
|3||PING||It is used to check whether the server is running or not.|
|4||QUIT||It is used to close the current connection.|
|5||SELECT index||It is used to change the selected database for the current connection|
Next TopicRedis Server