Memcached 的 LRU 实际上意味着什么?
Memcached 表示它使用 LRU 队列进行驱逐(混合了一些基于板大小的规则。)当他们说最近最少使用时,他们指的是最近最少存储还是最近最少读取?他们的文档在这里似乎含糊不清。
Memcached says it uses an LRU queue to do eviction (with a few rules based around slab sizes mixed in.) When they say least-recently-used, are they referring to least recently stored or least recently read? Their documentation seems ambiguous here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在任何地方看到这个术语时,LRU 都指的是最后一次访问(读或写),而不是最后一次存储。
这篇文章证实了这一点:
它继续讨论处于“主动使用”状态的项目 - 对我来说,这强烈暗示它是访问而不是存储......你不会谈论“主动存储”的内容,除非你实际编写了一半。
Everywhere I've seen the term used, LRU has referred to the last access (read or write) rather than the last store.
This article confirms it:
It goes on to talk about items which are in "active use" - which to me strongly implies that it's access rather than storage... you wouldn't talk about something "actively being stored" unless you're halfway through actually writing it.