That is, I'd like to add something to a sorted set:
"set1" - & Gt; [1371772258, 1371772265, 1371772299, etc.]
But I do not want to send time values to my server. I want to receive a consistent timestamp from a server clock, running on the server again.
You just use (available with Redis 2.6). It gives two values: the number of ages and microscopic seconds in seconds.
You can call it directly from the application. In that case, 2 roundtrips will be required (to execute at one time, to update one to the zacetre)
No comments:
Post a Comment