Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Redis Time Command

Redis Time Command

Redis Server

The Redis Time command is used to return the current server time.

Syntax

The basic syntax of the redis Time command is as follows:



redis 127.0.0.1:6379> TIME 

Available Version

= 2.6.0

Return Value

A list containing two strings: the first string is the current time (in UNIX timestamp format), and the second string is the number of microseconds that have elapsed in the current second.

Example



redis 127.0.0.1:6379> TIME 

1) "1410856598"

2) "928370"

Redis Server