首页 > 其他 > 详细

Redis(2.8.3) 命令学习 - Connection

时间:2015-09-26 11:55:36      阅读:163      评论:0      收藏:0      [点我收藏+]

AUTH password

Authenticate to the server

More: http://redis.io/commands/authhttp://www.redis.cn/commands/auth.html

 

ECHO message

Echo the given string

127.0.0.1:6379> ECHO "Hello World!"
"Hello World!"

More: http://redis.io/commands/echohttp://www.redis.cn/commands/echo.html

 

PING

Ping the server

127.0.0.1:6379> PING
PONG

More: http://redis.io/commands/pinghttp://www.redis.cn/commands/ping.html

 

QUIT

Close the connection

More: http://redis.io/commands/quithttp://www.redis.cn/commands/quit.html

 

SELECT index

Change the selected database for the current connectionconnection

127.0.0.1:6379> SELECT 9
OK
127.0.0.1:6379[9]> SELECT 6
OK
127.0.0.1:6379[6]> SELECT 0
OK
127.0.0.1:6379> 

More: http://redis.io/commands/selecthttp://www.redis.cn/commands/select.html

 

Redis(2.8.3) 命令学习 - Connection

原文:http://www.cnblogs.com/huey/p/4351090.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!