@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?
Why is this step necessary? mastodon.technology might not be the server where you are registered, so we need to redirect you to your home server first.
Don't have an account? You can sign up here