Redis 基础操作

1、ECHO message。

  Returns message.

  Redis 基础操作

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.

  Redis 基础操作

3、SELECT index

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

  默认使用 0 号数据库。

  Redis 基础操作

4、QUIT

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

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

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

相关文章:

  • 2021-12-18
  • 2021-05-05
  • 2021-08-13
  • 2022-12-23
  • 2022-02-28
  • 2021-06-11
  • 2022-02-07
  • 2021-12-08
猜你喜欢
  • 2021-12-18
  • 2021-10-29
  • 2022-01-09
  • 2022-12-23
相关资源
相似解决方案