Redis 连接
Redis 连接命令主�是用于连接 redis �务。
实例
以下实例演示了客户端如何通过密ç �验è¯�连接到 redis æœ�务,并检测æœ�务是å�¦åœ¨è¿�行:
redis 127.0.0.1:6379> AUTH "password" OK redis 127.0.0.1:6379> PING PONG
Redis 连接命令
下表列出了 redis 连接的基本命令:
| �� | 命令��述 |
|---|---|
| 1 | AUTH password 验è¯�密ç �是å�¦æ£ç¡® |
| 2 | ECHO message 打å�°å—符串 |
| 3 | PING 查看�务是��行 |
| 4 | QUIT å…³é—当å‰�连接 |
| 5 | SELECT index 切�到指定的数�库 |
点我分享笔记