In my experience, you wouldn't want the map to return null if the time
has expired. You would want it to return a "refreshed" value. So,
you would want to have the user provide a RefreshProvider (or whatever
you want to call it):
public interface RefreshProvider
{
public Object getValueForKey(
This sounds a little too specific for me. I suspect that most people
that want an expiring map will want it to be active not passive.
Stephen
Elifarley wrote:
I've developed a Map decorator which passively evicts expired entries once their
expiry time has been reached.
When putting an item i