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

过期缓存的淘汰 #10

Open
KingToyz opened this issue May 15, 2023 · 0 comments
Open

过期缓存的淘汰 #10

KingToyz opened this issue May 15, 2023 · 0 comments

Comments

@KingToyz
Copy link

KingToyz commented May 15, 2023

请教下,在
func (c *Cache) _get(key string, idx, level int32) (*node, int)
将cache的数据读取的时候,过期的数据也被lru提取到最前面,是不是会导致一些不应该那么快淘汰的数据被淘汰?
将adjust单独抽出,然后过期的数据不需要adjust是不是会更好?

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

1 participant