memcached时区不正确如何解决?
大家讲道理
大家讲道理 2016-11-08 15:12:30
0
1
720

我在应用中设定expire时间为半小时,但实际上8个半小时才失效,之间相差8个小时,

后来查到一个很奇怪的现象,是memcached取的系统时间不正确

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
代言

设置过期时间,不用timestamp不就完了...设置秒数好了...不然你就设置UTC时间的timestamp,不要用localtime

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!