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

Ordered peek iter #119

Closed povilasb closed 5 years ago

povilasb commented 5 years ago

Update peek_iter() to yield most recently used items first. This is useful when we are trying to serialize the cache, etc.

Currently, peek_iter() yields items sorted by their key which does not make a lot of sense in LRU cache.

maidsafe-highfive commented 5 years ago

r? @Fraser999

(maidsafe_highfive has picked a reviewer for you, use r? to override)