I need a card that needs to be protected from concurrent resources, type ref is suitable for my business.
Now I need a "time to live" policy to remove a potential entry that my code might forget to delete.
I checked clojure.core.cache , but I'm not sure if it is safe, since the data structure should be protected with the ref type.
I prefer a clean Clojure solution, but if things get complicated, would you suggest a different approach? For example, Google Guava?
source share