redis TIME command
Translation results:
英[taɪm] 美[taɪm]
n.Time; time; era; time
vt. Arrange time for...; measure the time of...; adjust (mechanical) Speed; the speed with which a clock or watch is set correctly
vi. In time; Harmony; Beat
adj. Timing; Regular; [American English] Installment (payment)
int.[Sports] Time is up, (a game or a game, etc.) game time limit, pause
Third person singular: times Plural: times Present participle: timing Past tense: timed
redis TIME commandsyntax
Function: Return the current server time.
Syntax: TIME
Available versions:>= 2.6.0
Time complexity:O(1)
Returns: A list containing two strings: the first string is the current time (in UNIX timestamp format), and the second The string is the number of microseconds that have elapsed in the current second.
redis TIME commandexample
redis> TIME 1) "1332395997" 2) "952581" redis> TIME 1) "1332395997" 2) "953148"