-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Hi Arthur,
One last question, this about iterators. Imagine I have a limit of 5K on this cache, and each entry occupies 1K.
I put the following entries: E1,E2,E3,E4,E5 and when I put the entry E6, E1 is evicted.
Now, I stop the app and save these 5 entries (E2,E3,E4,E5,E6) to disk iterating over the cache.
When the app starts again, I put back to the cache these entries,in the same order: E2,E3,E4,E5,E6 so if now E7 arrives, I will have E3,E4,E5,E6,E7
This is what I would need, always respect the 'put' order. Is this procedure correct? Does your iterator guarantee to traverse the cache in the order the entries were inserted? If not, is there any way to achieve what I need?
Thanks,
Joan.
Metadata
Metadata
Assignees
Labels
No labels