Redis - Server Time Command


Advertisements

Redis TIME command returns the current server time as a two-items list − a Unix timestamp and the amount of microseconds already elapsed in the current second. Basically, the interface is similar to the one of the gettimeofday system call.

Return Value

A multi bulk reply containing two elements −

  • Unix time in seconds.
  • Microseconds.

Syntax

Following is the basic syntax of Redis TIME command.

redis 127.0.0.1:6379> TIME

Example

redis 127.0.0.1:6379> TIME 
1) "1410856598" 
2) "928370" 
redis_server.htm
Advertisements