mant1988 / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Feature Request: SETTIME #587

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This commands would add the unix timestamp from the redis server to a key. 
Currently this can be done via clients--but variations in the clocks on client 
systems can create confusion (even with judicious use of NTP). This allows us 
to use the redis server clock consistently which is especially helpful in 
gateways responsible for synchronizing data between heterogeneous systems and 
applications via polling.

SETIME <key> 

Original issue reported on code.google.com by jpsh...@gmail.com on 16 Jun 2011 at 4:04

GoogleCodeExporter commented 8 years ago
Hello, for many reasons I would rather implement INFO TIME to return the 
current unix timestamp of the server to the client, so that there are no 
replication issues and in general the client can just use the server time as 
reference... however even when done in this way time dependent things are 
instance-specific and can create problems in both cluster and scripting 
contexts... so possibly the best thing to do is to use an external client that 
will care to SET the current UNIX time across all instances, or to synchronize 
all the clients with the NTP...

So for now I'm forced to avoid implementing something like that...

Thanks anyway for the feature request.
Salvatore

Original comment by anti...@gmail.com on 16 Jun 2011 at 4:34

GoogleCodeExporter commented 8 years ago
Salvatore,

Thanks for considering it and your prompt response.

John-Mason

Original comment by jpsh...@gmail.com on 16 Jun 2011 at 4:42