@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".
You can add a removal listener to the cache, which isn't mentioned in that answer but is in the javadoc.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!