-
Notifications
You must be signed in to change notification settings - Fork 22
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
146. LRU 缓存机制 #86
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
原题链接
借用 Map
Map 的键值是有序的,可以按照插入的顺序返回键值。
this.cache.keys().next().value
: 获取到头部元素(也就是最远使用的元素)的 keyThe text was updated successfully, but these errors were encountered: