Re: Corner case with timestamp TTLs

2019-08-12 Thread Slawomir Pryczek
Hi Dormando, thanks for explaining, very useful post. I read a lot about monotonic clocks and "leap second" problem recently, that's nice memcached is using monotonic. Will switch code to use relative TTLs W dniu poniedziałek, 12 sierpnia 2019 11:18:02 UTC+2 użytkownik Dormando napisał: > >

Re: Corner case with timestamp TTLs

2019-08-12 Thread dormando
Yo, In general we don't recommend using timestamps for short TTL's. They were really meant for dates far off in the future (months, where the accuracy wouldn't matter too much). There're zero use cases for TIMESTAMP + TTL where ttl is short. simply stop adding time() to it, or run it through a

Corner case with timestamp TTLs

2019-08-12 Thread Slawomir Pryczek
Hi Everyone, i have just came upon very strange corner case when doing SET using UNIX_TIMESTAMP plus TTL in memcached running in vmware container. It seems that on barebone servers there is no such issue. So if the container is running for some time, eg. a week or more, then it seems that