I need to cache some objects with rather hard creation times, and I need exactly one creation semantics. It should be possible to simultaneously create objects for different CacheKeys. I think I need something that (under the hood) does something like this:
ConcurrentHashMap<CacheKey, Future<HeavyObject>>
Are there existing open source versions that I can reuse?
source
share