English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Redis Connections

Redis connection commands are mainly used to connect to the redis service.

Online Examples

The following examples demonstrate how a client can verify a connection to the redis service using a password and check if the service is running:

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

Redis Connection Commands

The following table lists the basic commands for redis connections:

Serial NumberCommands and Descriptions
1AUTH password
Verify if the password is correct
2ECHO message
Print a string
3PING
Check if the service is running
4QUIT
Close the current connection
5SELECT index
Switch to the specified database