轉載:https://help.aliyun.com/knowledge_detail/38654.htmlhtml
關於設置緩存數據的過時時間,能夠參考如下Memcached官方說明:web
An expiration time, in seconds. Can be up to 30 days. After 30 days, is treated as a unix timestamp of an exact date.緩存
即:0~2592000表示從當前時刻算起的時間長度(以秒計算,最長2592000即30天);大於2592000表示UNIX時間戳。memcached
此值設置爲0代表此數據不會主動過時,但仍可能因數據逐出等緣由致使此數據失效。ui
Expire參數 | 說明 |
---|---|
0 | 此值設置爲0代表此數據不會主動過時,但仍可能因數據逐出等緣由致使此數據失效。 |
<=2592000秒(30天) | 以當前時間爲起點的相對時間。 |
>2592000 | 從1970-01-01 00:00:00開始的秒數表示的絕對時間。 |