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

LRU Cache implementation #10

Merged
merged 2 commits into from
Feb 4, 2018
Merged

LRU Cache implementation #10

merged 2 commits into from
Feb 4, 2018

Conversation

sunchao
Copy link
Owner

@sunchao sunchao commented Feb 3, 2018

This implements a LRU cache, along with the unit tests, based on the
corresponding C++ version. A few differences:

  1. Instead of returning pointers, this returns Rc<RefCell<..>>.
  2. Instead of tracking explicit reference count, this uses RC.

This implements a LRU cache, along with the unit tests, based on the
corresponding C++ version. A few differences:

1. Instead of returning pointers, this returns Rc<RefCell<..>>.
2. Instead of tracking explicit reference count, this uses RC.
@sunchao sunchao merged commit 85321ad into master Feb 4, 2018
@sunchao sunchao deleted the cache branch February 4, 2018 04:03
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

Successfully merging this pull request may close these issues.

None yet

1 participant