I need a multi-threaded Map object to use in my web server's caching, and I need to have null
keys.
HashMap
allows me to have null keys, but ConcurrentHashMap
doesn't. I tried to create a synchronized version of HashMap
using Collections.synchronizedMap(new HashMap())
but it doesn't accept null
keys either.
Is there any alternative that I can use, without having to implement some way to wrap the null
keys?