Heim  >  Fragen und Antworten  >  Hauptteil

memcached时区不正确如何解决?

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

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

大家讲道理大家讲道理2902 Tage vor724

Antworte allen(1)Ich werde antworten

  • 代言

    代言2016-11-08 15:12:46

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

    Antwort
    0
  • StornierenAntwort