@carlozancanaro You put an element into it, after a certain amount of time it will be removed, unless fetched, updated or "poked".

@shadowfacts @carlozancanaro I suppose so, the main thing I would need to use it for would be to make things purge themselves after a delay. So it would require a specific interface and callbacks for when the objects are purged. Plus some sort of iteration thing for expired tasks on the ticks.

Follow

@gudenau @shadowfacts It looks like Guava has something similar to what you want.

stackoverflow.com/questions/38

You can add a removal listener to the cache, which isn't mentioned in that answer but is in the javadoc.

bad fiddler on the roof joke 

bad fiddler on the roof joke 

re: bad fiddler on the roof joke 

Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!