maidsafe / lru_time_cache

LRU cache settable via size or time to live
BSD 3-Clause "New" or "Revised" License
104 stars 46 forks source link

Yield most recent items first #115

Closed povilasb closed 5 years ago

povilasb commented 5 years ago

Updated iterator traversal order. It used to iterate over the times by their key. Now it will iterate most recently used items first.

maidsafe-highfive commented 5 years ago

Thanks for the pull request, and welcome! The MaidSafe team is excited to review your changes, and you should hear from @Fraser999 (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see CONTRIBUTOR.md for more information.

povilasb commented 5 years ago

Merged as part of https://github.com/maidsafe/lru_time_cache/pull/116