Skip to content

过期缓存的淘汰 #10

Description

@KingToyz

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions