开发者

Google App Engine - Memcache - Setting the expires time to 5 seconds

开发者 https://www.devze.com 2022-12-26 09:35 出处:网络
If I set the expires time for an object I store in the memcache to 5 seconds, will it definitely not exist in th开发者_JAVA百科e memcache 10 seconds later?Here\'s what the App Engine for Java Doc says

If I set the expires time for an object I store in the memcache to 5 seconds, will it definitely not exist in th开发者_JAVA百科e memcache 10 seconds later?


Here's what the App Engine for Java Doc says:

The app can provide an expiration time when a value is stored, as either a number of seconds relative to when the value is added, or as an absolute Unix epoch time in the future (a number of seconds from midnight January 1, 1970). The value will be evicted no later than this time, though it may be evicted for other reasons.

So my understanding is it that the data will no longer be present after the specified expiration time.

However as the Memcache server probably runs on a different node than the webserver servicing the request the clock of both servers may not be perfectly synchronized.


no it wont. definitely.

0

精彩评论

暂无评论...
验证码 换一张
取 消