您的位置:首页 > 数据库 > Redis

Redis 基础操作

2015-10-16 16:02 253 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: