首页 > 其他 > 详细

Redis 基础操作

时间:2015-10-16 17:00:53      阅读:254      评论:0      收藏:0      [点我收藏+]

Redis 基础操作

1、ECHO message。

  Returns message.

  技术分享

2、PHING

  Returns PONG if no argument is provided, otherwise return a copy of the argument as a bulk. This command is often used to test if a connection is still alive, or to measure latency.

  技术分享

3、SELECT index

  切换到指定的数据库,数据库索引号 index 用数字值指定,以 0 作为起始索引值。

  默认使用 0 号数据库。

  技术分享

4、QUIT

  请求服务器关闭与当前客户端的连接。

  一旦所有等待中的回复(如果有的话)顺利写入到客户端,连接就会被关闭。

参考:http://redisdoc.com/connection/quit.html

Redis 基础操作

原文:http://www.cnblogs.com/tekkaman/p/4885547.html

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