I found the Cache created by method “CacheFactory.createCache(String name)” in UsernaMager Component is not synchronized, because it is implemented by HashMap.
If multiple threads access this Cache concurrently, and at least one of the threads modifies it structurally, thread safety issues will happen. So, how does author consider this problem? Otherwise, my understanding to the source code is not correct.
I got the answer in interface Cache from source code, they using synchronized keyword in get and put method even though in latest version 4.0.x.Why don’t they use ConcurrentHashMap?@Tom Evans