Redis connection command is mainly used to connect redis service.
Examples
The following example demonstrates how clients connect via password authentication to redis service, and testing services are running:
redis 127.0.0.1:6379> AUTH "password" OK redis 127.0.0.1:6379> PING PONG
Redis connection command
The following table lists the basic commands redis connection:
No. | Command and description |
---|---|
1 | AUTH password authentication password is correct |
2 | ECHO message print string |
3 | PING to see whether the service is running |
4 | QUIT close the current connection |
5 | SELECT index switch to the specified database |