ttlcache is really a great thing. We save the state in intervals and on exit of the application in a yaml file.
We reload the state of the cache values on restart of the application.
What we miss is a function SetUnsafe which can be used without mutex locking. So it would be much faster on bulk reload.
There is a set function but this is only locally and cannot be used globally.