English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Redis connection commands are mainly used to connect to the redis service.
The following examples demonstrate how the client can verify the 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
The following table lists the basic commands for redis connections:
Serial Number | Command and Description |
---|---|
1 | AUTH password Verify if the password is correct |
2 | ECHO message Print a string |
3 | PING Check if the service is running |
4 | QUIT Close the current connection |
5 | SELECT index Switch to the specified database |