servo / uluru

A simple, fast, LRU cache implementation.
Mozilla Public License 2.0
191 stars 20 forks source link

Add touch function, Debug and Clone #12

Closed avitex closed 4 years ago

avitex commented 4 years ago
avitex commented 4 years ago

Reasoning behind touch function was no public functions expose the inner indexes, but I needed a way of touching an entry and getting an immutable reference to its data. I could have find and then front, but it didn't feel explicit. I think this offers a better solution.

avitex commented 4 years ago

Currently blocked on release with this PR, any chance for a review?

mbrubeck commented 4 years ago

This looks great, thanks! I have published a new version that includes these changes.