时间

Syntax
TIME
Available since:
2.6.0
Time complexity:
O(1)
ACL categories:
@fast,

TIME 命令返回当前服务器时间作为一个包含两个元素的列表:一个 Unix 时间戳和当前秒内已经过去的微秒数。基本上,这个接口与 gettimeofday 系统调用的接口非常相似。

示例

TIME TIME

RESP2/RESP3 回复

Array reply: specifically, a two-element array consisting of the Unix timestamp in seconds and the microseconds' count.
RATE THIS PAGE
Back to top ↑