Redis命令组--Connection

格式:auth password
实例:auth 123456
作用:验证服务器命令
成功:返回OK
失败:返回错误码

格式:echo message
实例:echo hello
作用:返回message
成功:返回message
失败:无

格式:ping
实例:ping
作用:测试连接是否可用或者延时
成功:如果后面没有参数时返回PONG,否则会返回后面带的参数
失败:无

格式:quit
实例:quit
作用:请求服务器关闭连接
成功:OK
失败:无

格式:select idex
实例:select 2
作用:选择一个数据库,默认是0
成功:OK
失败:无

猜你喜欢

转载自blog.csdn.net/saywhat_sayhello/article/details/80337735