Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache Iterator? #63

Open
mpwoodward opened this issue Mar 1, 2012 · 0 comments
Open

Cache Iterator? #63

mpwoodward opened this issue Mar 1, 2012 · 0 comments

Comments

@mpwoodward
Copy link

(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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant