You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What do you think of adding a cache iterator? I've been working on some custom capability to inspect and clear individual items from the Mach-ii cache.. (maybe a future Dashboard feature?) However, the attached patch may be a first step to have the framework return a cache iterator.
This implementation for LRU and TimeSpan? grab the keys right when the iterator is created, so it's possible that the entries my not exist when the caller actually iterates through the list. At some level you will always have that problem unless you make a copy of the entire cache... it may not be worth the memory cost..
(Moved from http://trac.mach-ii.com/machii/ticket/533)
What do you think of adding a cache iterator? I've been working on some custom capability to inspect and clear individual items from the Mach-ii cache.. (maybe a future Dashboard feature?) However, the attached patch may be a first step to have the framework return a cache iterator.
This implementation for LRU and TimeSpan? grab the keys right when the iterator is created, so it's possible that the entries my not exist when the caller actually iterates through the list. At some level you will always have that problem unless you make a copy of the entire cache... it may not be worth the memory cost..
Changed 2 years ago by [email protected]
attachment cache-iterator.patch added
cache iterator patch
comment:1 Changed 2 years ago by peterfarrell
Keywords caching keys iterate added
Milestone set to Uncategorized
See the discussion on our development list http://groups.google.com/group/mach-ii-developers/browse_thread/thread/41c0961b367237da
The text was updated successfully, but these errors were encountered: