Redis Connections

Redis connection commands are used to control and 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 Connections 1

Note: Here you can see that "password" is not set so you can access any command directly.


Redis Connection Commands

Following is a list of some basic connection commands used in Redis database:

IndexCommandsDescription
1AUTH passwordIt is used to authenticate to the server with the given password.
2ECHO messageIt is used to print the given string.
3PINGIt is used to check whether the server is running or not.
4QUITIt is used to close the current connection.
5SELECT indexIt is used to change the selected database for the current connection

Next TopicRedis Server




Latest Courses