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

change: don't move the item with expire time to the head when lookup. #2273

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

zhuizhuhaomeng
Copy link
Contributor

I hereby granted the copyright of the changes in this pull request
to the authors of this lua-nginx-module project.

@xiaocang
Copy link
Contributor

Is there a problem with this strategy: if there are some keys that have been expired for a long time, will they cause a pileup at the end of the lru queue that can't be cleaned up?
It's better to change the policy to only target expired keys and not update them to the lru queue head.

@zhuizhuhaomeng zhuizhuhaomeng merged commit bf5d9d3 into master Dec 22, 2023
2 of 3 checks passed
@zhuizhuhaomeng zhuizhuhaomeng deleted the expire-dict branch December 22, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants