eliminating memcached's 30-day limit

后端 未结 2 1988
日久生厌
日久生厌 2021-01-12 18:25

Why does memcached impose a 30-day limit on the lifetime of cache entries?

In my system, I am always setting the lifetime to be 30 days, since that\'s the max allowe

2条回答
  •  耶瑟儿~
    2021-01-12 18:50

    30 days is the limit at which we consider the time you specified to be a TTL from now.

    If you want longer than 30 days, it's fine, just use an absolute time (time() + whatever).

    If you want no time-based expiration, as ConroyP says, just use 0.

提交回复
热议问题