Is there a "decaying map" in Java?
@gudenau What do you mean by "decaying map"?
@carlozancanaro You put an element into it, after a certain amount of time it will be removed, unless fetched, updated or "poked".
@gudenau I don't know of anything time-based, but java.lang.ref.SoftReference lets you to build data structures that will hold objects until there's memory pressure. I think Guava has a SoftHashMap implementation.
What's the use case for you?
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!