Mach-II/Mach-II-Framework — Issue #63: Cache Iterator?
Author: mpwoodward
Created: 2012-03-01 19:04:26+00:00
State: open
Labels: enhancement

(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 jason.york@gmail.com

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