Ticket #533 (closed enhancement: Moved to GitHub)
Cache Iterator?
| Reported by: | jason.york@… | Owned by: | kurtwiersma |
|---|---|---|---|
| Priority: | minor | Milestone: | Uncategorized |
| Component: | framework - caching | Version: | |
| Keywords: | caching keys iterate | Cc: | |
| Blocked By: | Blocking: |
Description
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..
Attachments
Change History
Changed 2 years ago by jason.york@…
-
attachment
cache-iterator.patch
added
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

cache iterator patch