Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问替换策略是怎么样的? #41

Open
salmonx opened this issue May 27, 2016 · 1 comment
Open

请问替换策略是怎么样的? #41

salmonx opened this issue May 27, 2016 · 1 comment

Comments

@salmonx
Copy link

salmonx commented May 27, 2016

No description provided.

@jfb8856606
Copy link
Member

jfb8856606 commented Aug 29, 2016

  1. 如果过期,则在下次请求时删除缓存。
  2. 如果未过期,但又有新的响应,则以原有的短TTL缓存为准(尤其是NS记录)
  3. 如果未过期,但本地缓存数量太多,则会进行清理,优先清理TTL剩余时间较短的缓存。
  4. 如果开始了缓存预刷新(默认代码中是开启的),则缓存TTL剩余3秒时,重新去请求该记录。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants